From: Rene Scharfe Date: Wed, 30 Aug 2017 17:57:30 +0000 (+0200) Subject: notes: release strbuf after use in notes_copy_from_stdin() X-Git-Tag: v2.15.0-rc0~78^2~14 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1f3992f4be09d47dd45af253743ac233c21f7986?hp=814c4b374710c297e8538916814483b2098593c4 notes: release strbuf after use in notes_copy_from_stdin() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- 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; }