summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2014-09-13 16:16:53 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-09-15 11:37:43 -0700
commit1cc2c772dd4dc5f9396a229e2727ca28ef25c33b (patch)
tree4f1646e9262aadd6ecf7a9ff35c28d09b41063eb /builtin
parentMerge git://github.com/git-l10n/git-po (diff)
downloadtgif-1cc2c772dd4dc5f9396a229e2727ca28ef25c33b.tar.xz
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>
Diffstat (limited to 'builtin')
-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 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)