From: Phillip Wood Date: Tue, 14 May 2019 18:03:46 +0000 (+0100) Subject: rebase: fix a memory leak X-Git-Tag: v2.23.0-rc0~74^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7372eaeb8b47ba96bad08777cd1330561ada8592 rebase: fix a memory leak buf was never freed. Signed-off-by: Phillip Wood Signed-off-by: Junio C Hamano --- diff --git a/builtin/rebase.c b/builtin/rebase.c index cd233c6118..a9062c672b 100644 --- a/builtin/rebase.c +++ b/builtin/rebase.c @@ -2165,6 +2165,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);