Skip to content

Commit 86ad3ea

Browse files
rscharfegitster
authored andcommitted
sha1-file: release strbuf after use
Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 7c20df8 commit 86ad3ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sha1-file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,7 @@ static void read_alternate_refs(const char *path,
799799

800800
fclose(fh);
801801
finish_command(&cmd);
802+
strbuf_release(&line);
802803
}
803804

804805
struct alternate_refs_data {

0 commit comments

Comments
 (0)