From: René Scharfe Date: Wed, 7 Aug 2019 11:15:25 +0000 (+0200) Subject: sha1-file: release strbuf after use X-Git-Tag: v2.23.0-rc2~2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=86ad3ea5cff8fa09180408e610b269390c1f4848;p=thirdparty%2Fgit.git sha1-file: release strbuf after use Signed-off-by: René Scharfe Signed-off-by: Junio C Hamano --- diff --git a/sha1-file.c b/sha1-file.c index 84fd02f107..487ea35d2d 100644 --- a/sha1-file.c +++ b/sha1-file.c @@ -799,6 +799,7 @@ static void read_alternate_refs(const char *path, fclose(fh); finish_command(&cmd); + strbuf_release(&line); } struct alternate_refs_data {