提交 1cc2c772 编写于 作者: J Jeff King 提交者: Junio C Hamano

prune-packed: fix minor memory leak

We form all of our directories in a strbuf, but never release it.
Signed-off-by: NJeff King <peff@peff.net>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 96db324a
...@@ -68,6 +68,7 @@ void prune_packed_objects(int opts) ...@@ -68,6 +68,7 @@ void prune_packed_objects(int opts)
rmdir(pathname.buf); rmdir(pathname.buf);
} }
stop_progress(&progress); stop_progress(&progress);
strbuf_release(&pathname);
} }
int cmd_prune_packed(int argc, const char **argv, const char *prefix) int cmd_prune_packed(int argc, const char **argv, const char *prefix)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册