sequencer: stop leaking buf
commit65c425a2ec815989994716c81a2307ae5b5645bc
authorDenton Liu <liu.denton@gmail.com>
Sat, 4 Apr 2020 01:11:16 +0000 (3 21:11 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 5 Apr 2020 21:15:09 +0000 (5 14:15 -0700)
tree26953bdaf1105e7cf9c0e27f1da0f2c4b54e0edc
parentfd6852cab219149e800d352f3939631377b41575
sequencer: stop leaking buf

In read_populate_opts(), we call read_oneliner() _after_ calling
strbuf_release(). This means that `buf` is leaked at the end of the
function.

Always clean up the strbuf by going to `done_rebase_i` whether or not
we return an error.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c