summaryrefslogtreecommitdiff
path: root/sha1-file.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2019-08-07 11:15:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-08-07 19:28:57 (GMT)
commit86ad3ea5cff8fa09180408e610b269390c1f4848 (patch)
tree3c43b2c37465c5c91bb115dbb49446fe1aed0a57 /sha1-file.c
parent7c20df84bd21ec0215358381844274fa10515017 (diff)
downloadgit-86ad3ea5cff8fa09180408e610b269390c1f4848.zip
git-86ad3ea5cff8fa09180408e610b269390c1f4848.tar.gz
git-86ad3ea5cff8fa09180408e610b269390c1f4848.tar.bz2
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>
Diffstat (limited to 'sha1-file.c')
-rw-r--r--sha1-file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sha1-file.c b/sha1-file.c
index 84fd02f..487ea35 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 {