mirror of
https://github.com/git/git.git
synced 2024-06-13 09:36:21 +02:00
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>
This commit is contained in:
parent
07e2383945
commit
648027c4c8
|
@ -304,6 +304,7 @@ static int batch_objects(struct batch_options *opt)
|
|||
break;
|
||||
}
|
||||
|
||||
strbuf_release(&buf);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue