]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
sequencer: fix a memory leak in sequencer_continue()
authorAlban Gruin <alban.gruin@gmail.com>
Thu, 28 Nov 2019 23:02:03 +0000 (00:02 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 30 Nov 2019 17:40:35 +0000 (09:40 -0800)
commitf6b9413bafbe22202007f9c891082c1df82fce52
treeb7629ce047c8f6f1020b5983f18051253ea49867
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9
sequencer: fix a memory leak in sequencer_continue()

When continuing an interactive rebase after a merge conflict was solved,
if the resolution could not be committed, sequencer_continue() would
return early without releasing its todo list, resulting in a memory
leak.  This plugs this leak by jumping to the end of the function, where
the todo list is deallocated.

Signed-off-by: Alban Gruin <alban.gruin@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c