[v2,1/4] rebase: fix a memory leak
diff mbox series

Message ID 20190514180349.17245-2-phillip.wood123@gmail.com
State New
Headers show
Series
  • rebase --abort/--quit: cleanup refs/rewritten
Related show

Commit Message

Phillip Wood May 14, 2019, 6:03 p.m. UTC
From: Phillip Wood <phillip.wood@dunelm.org.uk>

buf was never freed.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
---
 builtin/rebase.c | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

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);