mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
rebase: fix a memory leak
buf was never freed. Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
460bc3ce73
commit
7372eaeb8b
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue