From: Rene Scharfe Date: Wed, 30 Aug 2017 17:49:50 +0000 (+0200) Subject: merge: release strbuf after use in write_merge_heads() X-Git-Tag: v2.15.0-rc0~78^2~15 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/814c4b374710c297e8538916814483b2098593c4 merge: release strbuf after use in write_merge_heads() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- diff --git a/builtin/merge.c b/builtin/merge.c index 4f8418246b..7bc3fe4b6d 100644 --- 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)