From: Jeff King Date: Tue, 7 Jan 2014 22:10:35 +0000 (-0500) Subject: cat-file: fix a minor memory leak in batch_objects X-Git-Tag: v2.0.0-rc0~68^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/648027c4c85bbfdcf0663ff51e55425aefac14a9?ds=inline;hp=--cc cat-file: fix a minor memory leak in batch_objects We should always have been freeing our strbuf, but doing so consistently was annoying until the refactoring in the previous patch. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- 648027c4c85bbfdcf0663ff51e55425aefac14a9 diff --git a/builtin/cat-file.c b/builtin/cat-file.c index 6b65f56f44..1fdb980258 100644 --- a/builtin/cat-file.c +++ b/builtin/cat-file.c @@ -304,6 +304,7 @@ static int batch_objects(struct batch_options *opt) break; } + strbuf_release(&buf); return retval; }