Commit Diff


commit - 46f2b277e08063e0367378a880286d33f61a9b22
commit + 8e44806733c74485c2f87f9f3b3370d43f0f1e1b
blob - 99c0a1b716240c3a598a85d75ad9eb6caaa3ff9e
blob + fc1ab25021b651e94754143be5b647d2ba14ebbe
--- lib/pack_create.c
+++ lib/pack_create.c
@@ -1086,11 +1086,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;
 }