Subject: [PATCH 1/3] prune-packed: fix minor memory leak

From: Jeff King <[email-masked]>
Date: Sat, 13 Sep 2014 16:16:53 -0400

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

Signed-off-by: Jeff King <[email-masked]>
---
 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