Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
sha1-file: release strbuf after use
author
René Scharfe
<l.s.r@web.de>
Wed, 7 Aug 2019 11:15:25 +0000
(13:15 +0200)
committer
Junio 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
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
7c20df8
)
diff --git
a/sha1-file.c
b/sha1-file.c
index 84fd02f107602411f3ceb460e4fe5b41c212bdec..487ea35d2d398434d2a907188d8f7ede17721fe3 100644
(file)
--- 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 {