Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
prune-packed: fix minor memory leak
author
Jeff King
<peff@peff.net>
Sat, 13 Sep 2014 20:16:53 +0000
(16:16 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 15 Sep 2014 18:37:43 +0000
(11:37 -0700)
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>
builtin/prune-packed.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
96db324
)
diff --git
a/builtin/prune-packed.c
b/builtin/prune-packed.c
index 6879468c46a7baca69e5e28b0c6e38ff7099a6ff..d430731d701d7a06e1da0d8273c03453b85dcf96 100644
(file)
--- 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)