summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Rene Scharfe <l.s.r@web.de>2017-08-30 19:57:30 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-07 08:49:28 +0900
commit1f3992f4be09d47dd45af253743ac233c21f7986 (patch)
tree35d8980484228bd3115ce00997cce6c9c087081b
parentmerge: release strbuf after use in write_merge_heads() (diff)
downloadtgif-1f3992f4be09d47dd45af253743ac233c21f7986.tar.xz
notes: release strbuf after use in notes_copy_from_stdin()
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin/notes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/notes.c b/builtin/notes.c
index 4303848e04..8e54f2d146 100644
--- a/builtin/notes.c
+++ b/builtin/notes.c
@@ -328,6 +328,7 @@ static int notes_copy_from_stdin(int force, const char *rewrite_cmd)
} else {
finish_copy_notes_for_rewrite(c, msg);
}
+ strbuf_release(&buf);
return ret;
}