aboutsummaryrefslogtreecommitdiffstats
path: root/git.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-11-20 14:39:34 +0100
committerJunio C Hamano <gitster@pobox.com>2024-11-21 08:23:41 +0900
commitcfb8a0da55fec9619e4e5b1e9b211ef85e3c9cb3 (patch)
tree2ee19b327de346097fb695287215f4e94ee4a2cd /git.c
parentbisect: fix leaking `current_bad_oid` (diff)
downloadgit-cfb8a0da55fec9619e4e5b1e9b211ef85e3c9cb3.tar.gz
git-cfb8a0da55fec9619e4e5b1e9b211ef85e3c9cb3.zip
bisect: fix multiple leaks in `bisect_next_all()`
There are multiple leaks in `bisect_next_all()`. For one we don't free the `tried` commit list. Second, one of the branches uses a direct return instead of jumping to the cleanup code. Fix these by freeing the commit list and converting the return to a goto. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
0 files changed, 0 insertions, 0 deletions