From: Phillip Wood Date: Tue, 14 May 2019 18:03:46 GMT Subject: [PATCH v2 1/4] rebase: fix a memory leak Message-ID: <20190514180349.17245-2-phillip.wood123@gmail.com> In-Reply-To: <20190514180349.17245-1-phillip.wood123@gmail.com> From: Phillip Wood buf was never freed. Signed-off-by: Phillip Wood --- builtin/rebase.c | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/rebase.c b/builtin/rebase.c index 82bd50a1b4..90037c9c45 100644 --- a/builtin/rebase.c +++ b/builtin/rebase.c @@ -2168,6 +2168,7 @@ int cmd_rebase(int argc, const char **argv, const char *prefix) ret = !!run_specific_rebase(&options, action); cleanup: + strbuf_release(&buf); strbuf_release(&revisions); free(options.head_name); free(options.gpg_sign_opt); -- 2.21.0