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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Jan 7, 2014 at 17:10 UTC
648027c4c85bbfdcf0663ff51e55425aefac14a9
1 file changed
+1
builtin/cat-file.c
+1
@@ -304,6 +304,7 @@ static int batch_objects(struct batch_options *opt)
304
break;
305
}
306
307
+ strbuf_release(&buf);
308
return retval;
309
}
310