1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-10-30 05:47:53 +01:00

prune-packed: fix minor memory leak

We form all of our directories in a strbuf, but never release it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jeff King 2014-09-13 16:16:53 -04:00 committed by Junio C Hamano
parent 96db324a73
commit 1cc2c772dd

View file

@ -68,6 +68,7 @@ void prune_packed_objects(int opts)
rmdir(pathname.buf);
}
stop_progress(&progress);
strbuf_release(&pathname);
}
int cmd_prune_packed(int argc, const char **argv, const char *prefix)