Skip to content

Commit 077a34e

Browse files
dschogitster
authored andcommitted
pack-redundant: plug memory leak
Identified via Coverity. Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2d4dcf2 commit 077a34e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/pack-redundant.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ static void minimize(struct pack_list **min)
442442
/* return if there are no objects missing from the unique set */
443443
if (missing->size == 0) {
444444
*min = unique;
445+
free(missing);
445446
return;
446447
}
447448

0 commit comments

Comments
 (0)