diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-08-09 10:13:14 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-08-09 10:13:14 -0700 |
commit | d2422a99ccce96c9618357827c84bad6110dee4a (patch) | |
tree | 166fe60667f18d2d6b6d9a89975fad7abf43e8be | |
parent | Merge branch 'mt/dir-iterator-updates' (diff) | |
parent | sha1-file: release strbuf after use (diff) | |
download | tgif-d2422a99ccce96c9618357827c84bad6110dee4a.tar.xz |
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
-rw-r--r-- | sha1-file.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |