From: Johannes Schindelin Date: Thu, 4 May 2017 13:56:54 +0000 (+0200) Subject: pack-redundant: plug memory leak X-Git-Tag: v2.13.1~27^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=077a34e0b9401f9bcea991d850f1111a70e7d3d1;p=thirdparty%2Fgit.git pack-redundant: plug memory leak Identified via Coverity. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/builtin/pack-redundant.c b/builtin/pack-redundant.c index 72c815844d..cb1df1c761 100644 --- a/builtin/pack-redundant.c +++ b/builtin/pack-redundant.c @@ -442,6 +442,7 @@ static void minimize(struct pack_list **min) /* return if there are no objects missing from the unique set */ if (missing->size == 0) { *min = unique; + free(missing); return; }