sha1-file: release strbuf after use
authorRené Scharfe <l.s.r@web.de>
Wed, 7 Aug 2019 11:15:25 +0000 (13:15 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Aug 2019 19:28:57 +0000 (12:28 -0700)
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1-file.c
index 84fd02f107602411f3ceb460e4fe5b41c212bdec..487ea35d2d398434d2a907188d8f7ede17721fe3 100644 (file)
@@ -799,6 +799,7 @@ static void read_alternate_refs(const char *path,
 
        fclose(fh);
        finish_command(&cmd);
+       strbuf_release(&line);
 }
 
 struct alternate_refs_data {