Skip to content

Commit 7372eae

Browse files
phillipwoodgitster
authored andcommitted
rebase: fix a memory leak
buf was never freed. Signed-off-by: Phillip Wood <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 460bc3c commit 7372eae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/rebase.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2165,6 +2165,7 @@ int cmd_rebase(int argc, const char **argv, const char *prefix)
21652165
ret = !!run_specific_rebase(&options, action);
21662166

21672167
cleanup:
2168+
strbuf_release(&buf);
21682169
strbuf_release(&revisions);
21692170
free(options.head_name);
21702171
free(options.gpg_sign_opt);

0 commit comments

Comments
 (0)