diff options
author | Denton Liu <liu.denton@gmail.com> | 2020-04-03 21:11:16 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-05 14:15:09 -0700 |
commit | 65c425a2ec815989994716c81a2307ae5b5645bc (patch) | |
tree | 26953bdaf1105e7cf9c0e27f1da0f2c4b54e0edc /merge.c | |
parent | t7600: use test_write_lines() (diff) | |
download | tgif-65c425a2ec815989994716c81a2307ae5b5645bc.tar.xz |
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>
Diffstat (limited to 'merge.c')
0 files changed, 0 insertions, 0 deletions