Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-09-14 00:16:53 +0400
committerJunio C Hamano <gitster@pobox.com>2014-09-15 22:37:43 +0400
commit1cc2c772dd4dc5f9396a229e2727ca28ef25c33b (patch)
tree4f1646e9262aadd6ecf7a9ff35c28d09b41063eb /builtin/prune-packed.c
parent96db324a73fdada6fbe7b63221986f8f18cc63b0 (diff)
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/prune-packed.c')
-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)