From 1f3992f4be09d47dd45af253743ac233c21f7986 Mon Sep 17 00:00:00 2001 From: Rene Scharfe Date: Wed, 30 Aug 2017 19:57:30 +0200 Subject: notes: release strbuf after use in notes_copy_from_stdin() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- builtin/notes.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3