Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
merge: release strbuf after use in write_merge_heads()
author
Rene Scharfe
<l.s.r@web.de>
Wed, 30 Aug 2017 17:49:50 +0000
(19:49 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 6 Sep 2017 23:49:28 +0000
(08:49 +0900)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/merge.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
150888e
)
diff --git
a/builtin/merge.c
b/builtin/merge.c
index 4f8418246be92732bbfdcd742b56a178d57119e2..7bc3fe4b6d1747f17320aa843db9d74546f243ad 100644
(file)
--- a/
builtin/merge.c
+++ b/
builtin/merge.c
@@
-938,6
+938,7
@@
static void write_merge_heads(struct commit_list *remoteheads)
if (fast_forward == FF_NO)
strbuf_addstr(&buf, "no-ff");
write_file_buf(git_path_merge_mode(), buf.buf, buf.len);
+ strbuf_release(&buf);
}
static void write_merge_state(struct commit_list *remoteheads)