Thread (13 messages) 13 messages, 3 authors, 2019-05-14
STALE2614d

[PATCH v2 1/4] rebase: fix a memory leak

From: Phillip Wood <hidden>
Date: 2019-05-14 18:04:06
Subsystem: the rest · Maintainer: Linus Torvalds

From: Phillip Wood <redacted>

buf was never freed.

Signed-off-by: Phillip Wood <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help