X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=uid_db.c;h=14a081d8299b1262657bb6063942f9dab0e354eb;hb=98cfcef26048bba06975e68a1aad05a8bac0d65d;hp=eed249afa708cde9617a50088a809332d829cdb4;hpb=dbb179567dd2e850e0e8327a823d21ee311db823;p=~andy%2Ffetchmail diff --git a/uid_db.c b/uid_db.c index eed249af..14a081d8 100644 --- a/uid_db.c +++ b/uid_db.c @@ -460,6 +460,8 @@ struct uid_db_record *last_uid_in_db(struct uid_db *db, char const *id) /** destruction */ static void free_uid_list(struct uid_db_record *rec) { + if (!rec) return; + /* Free the list of uid_db_records starting with the record pointed to by rec.