From 86ad3ea5cff8fa09180408e610b269390c1f4848 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9=20Scharfe?= Date: Wed, 7 Aug 2019 13:15:25 +0200 Subject: [PATCH] sha1-file: release strbuf after use MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: René Scharfe Signed-off-by: Junio C Hamano --- sha1-file.c | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.39.2