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-Url: http://git.99rst.org/?a=commitdiff_plain;h=1f3992f4be09d47dd45af253743ac233c21f7986;p=git.git 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; }