pack-redundant: plug memory leak
Identified via Coverity. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
2d4dcf210e
commit
077a34e0b9
@ -442,6 +442,7 @@ static void minimize(struct pack_list **min)
|
|||||||
/* return if there are no objects missing from the unique set */
|
/* return if there are no objects missing from the unique set */
|
||||||
if (missing->size == 0) {
|
if (missing->size == 0) {
|
||||||
*min = unique;
|
*min = unique;
|
||||||
|
free(missing);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user