1
0
Fork 0
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:
Jeff King 2014-01-07 17:10:35 -05:00 committed by Junio C Hamano
parent 07e2383945
commit 648027c4c8

View File

@ -304,6 +304,7 @@ static int batch_objects(struct batch_options *opt)
break;
}
strbuf_release(&buf);
return retval;
}