commit 42300e501b05cf157853de0eaf4a4d5360b0793f from: Stefan Sperling date: Tue Nov 12 12:22:56 2024 UTC slight code simplification, seeing that clear_meta(NULL) is fine commit - 9c1b133592069eb8885b5bec922d06995ece91e1 commit + 42300e501b05cf157853de0eaf4a4d5360b0793f blob - 892d80d152938a8113afdc25ce1a4e47b6b3288b blob + 51eb2fd9f78c26e8b8bdecf029482685172ecfe7 --- lib/pack_create.c +++ lib/pack_create.c @@ -1089,11 +1089,9 @@ static const struct got_error * free_meta(struct got_object_id *id, void *data, void *arg) { struct got_pack_meta *meta = data; - if (meta){ - clear_meta(meta); - free(meta); - } - + + clear_meta(meta); + free(meta); return NULL; }