From 8ee6b9fd03cc8d7baa1d26ff334ef10e7c237dfb Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 19 Apr 2017 16:20:35 +0200 Subject: [PATCH] pack-redundant: plug memory leak Identified via Coverity. Signed-off-by: Johannes Schindelin --- builtin/pack-redundant.c | 1 + 1 file changed, 1 insertion(+) 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; }