commit dbbf4a5f0cfb712c5970dcb79a65c5dd2e62b19a from: Stefan Sperling date: Thu May 20 09:51:59 2021 UTC allow got_deltify_free(NULL); will be needed by 'gotadmin pack' commit - 932dbee786f1c1497e07a16ada6e3dbb755fdd08 commit + dbbf4a5f0cfb712c5970dcb79a65c5dd2e62b19a blob - 0d3095dbc2f8385df7b911b0f4efb306980c1f41 blob + 0b023fb4330314246e6a110ad5aade625f8b9a0f --- lib/deltify.c +++ lib/deltify.c @@ -281,6 +281,8 @@ done: void got_deltify_free(struct got_delta_table *dt) { + if (dt == NULL) + return; free(dt->blocks); free(dt); }