From 648027c4c85bbfdcf0663ff51e55425aefac14a9 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Tue, 7 Jan 2014 17:10:35 -0500 Subject: [PATCH] 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 --- builtin/cat-file.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.11.4.GIT