summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-09-13 20:16:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-09-15 18:37:43 (GMT)
commit1cc2c772dd4dc5f9396a229e2727ca28ef25c33b (patch)
tree4f1646e9262aadd6ecf7a9ff35c28d09b41063eb
parent96db324a73fdada6fbe7b63221986f8f18cc63b0 (diff)
downloadgit-1cc2c772dd4dc5f9396a229e2727ca28ef25c33b.zip
git-1cc2c772dd4dc5f9396a229e2727ca28ef25c33b.tar.gz
git-1cc2c772dd4dc5f9396a229e2727ca28ef25c33b.tar.bz2
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>
-rw-r--r--builtin/prune-packed.c1
1 files changed, 1 insertions, 0 deletions
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)