From: Jeff King Date: Sat, 13 Sep 2014 20:16:53 GMT Subject: [PATCH 1/3] prune-packed: fix minor memory leak Message-ID: <20140913201653.GA27082@peff.net> In-Reply-To: <20140913201538.GA24854@peff.net> We form all of our directories in a strbuf, but never release it. Signed-off-by: Jeff King --- builtin/prune-packed.c | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/prune-packed.c b/builtin/prune-packed.c index 6879468..d430731 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) -- 2.1.0.373.g91ca799