diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-08-14 08:52:36 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-14 19:08:00 +0200 |
commit | 2f07d228c3a1c623526ddf38e609dc45c98fb22e (patch) | |
tree | 5a42e332ecdadb3c43471281e34be2a303ec31a1 /t/t3510-cherry-pick-sequence.sh | |
parent | merge-ort: unconditionally release attributes index (diff) | |
download | git-2f07d228c3a1c623526ddf38e609dc45c98fb22e.tar.xz git-2f07d228c3a1c623526ddf38e609dc45c98fb22e.zip |
sequencer: release todo list on error paths
We're not releasing the `todo_list` in `sequencer_pick_revisions()` when
hitting an error path. Restructure the function to have a common exit
path such that we can easily clean up the list and thus plug this memory
leak.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rwxr-xr-x | t/t3510-cherry-pick-sequence.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t3510-cherry-pick-sequence.sh b/t/t3510-cherry-pick-sequence.sh index 7eb52b12ed..93c725bac3 100755 --- a/t/t3510-cherry-pick-sequence.sh +++ b/t/t3510-cherry-pick-sequence.sh @@ -12,6 +12,7 @@ test_description='Test cherry-pick continuation features ' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh # Repeat first match 10 times |