summaryrefslogtreecommitdiff
path: root/t/t4034
diff options
context:
space:
mode:
authorLibravatar Martin Ågren <martin.agren@gmail.com>2017-11-05 21:24:31 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-11-06 10:15:29 +0900
commitf4e45cb3eb6fad4570ff63eecb37bae8102992fc (patch)
tree6c5bcac21f03ec8d0af24dbd4a2704dcacd51c87 /t/t4034
parentbisect: fix off-by-one error in `best_bisection_sorted()` (diff)
downloadtgif-f4e45cb3eb6fad4570ff63eecb37bae8102992fc.tar.xz
bisect: fix memory leak when returning best element
When `find_bisection()` returns a single list entry, it leaks the other entries. Move the to-be-returned item to the front and free the remainder. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4034')
0 files changed, 0 insertions, 0 deletions