From: Jeff King Date: Sat, 13 Sep 2014 20:16:53 +0000 (-0400) Subject: prune-packed: fix minor memory leak X-Git-Tag: v2.2.0-rc0~86^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1cc2c772dd4dc5f9396a229e2727ca28ef25c33b;p=thirdparty%2Fgit.git prune-packed: fix minor memory leak We form all of our directories in a strbuf, but never release it. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/builtin/prune-packed.c b/builtin/prune-packed.c index 6879468c46..d430731d70 100644 --- a/builtin/prune-packed.c +++ b/builtin/prune-packed.c @@ -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)