Skip to content

Commit d2422a9

Browse files
committed
Merge branch 'rs/plug-strbuf-reak-in-read-alt-refs'
Leakfix. * rs/plug-strbuf-reak-in-read-alt-refs: sha1-file: release strbuf after use
2 parents 9179380 + 86ad3ea commit d2422a9

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)