git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
460bc3c
)
rebase: fix a memory leak
author
Phillip Wood
<redacted>
Tue, 14 May 2019 18:03:46 +0000
(19:03 +0100)
committer
Junio C Hamano
<redacted>
Wed, 15 May 2019 01:59:33 +0000
(10:59 +0900)
buf was never freed.
Signed-off-by: Phillip Wood <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/rebase.c
patch
|
blob
|
history
diff --git
a/builtin/rebase.c
b/builtin/rebase.c
index cd233c61188ebdb8cfcde503c21a5fdbf5e474aa..a9062c672b9120ae380a78697920d2769a2f2136 100644
(file)
--- a/
builtin/rebase.c
+++ b/
builtin/rebase.c
@@
-2165,6
+2165,7
@@
run_rebase:
ret = !!run_specific_rebase(&options, action);
cleanup:
+ strbuf_release(&buf);
strbuf_release(&revisions);
free(options.head_name);
free(options.gpg_sign_opt);
git clone https://git.99rst.org/PROJECT