Git fork

revisions API: clear "boundary_commits" in release_revisions()

Clear the "boundary_commits" object_array in release_revisions(). This
makes a few more tests pass under SANITIZE=leak, including
"t/t4126-apply-empty.sh" which started failed as an UNLEAK() in
cmd_format_patch() was removed in a preceding commit.

This also re-marks the various tests relying on "git format-patch" as
passing under "SANITIZE=leak", in the preceding "revisions API users:
use release_revisions() in builtin/log.c" commit those were marked as
failing as we removed the UNLEAK(rev) from cmd_format_patch() in
"builtin/log.c".

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Ævar Arnfjörð Bjarmason and committed by
Junio C Hamano
ab1f6926 689a8e80

+9 -1
+1
revision.c
··· 2947 2947 { 2948 2948 free_commit_list(revs->commits); 2949 2949 object_array_clear(&revs->pending); 2950 + object_array_clear(&revs->boundary_commits); 2950 2951 release_revisions_cmdline(&revs->cmdline); 2951 2952 list_objects_filter_release(&revs->filter); 2952 2953 clear_pathspec(&revs->prune_data);
+1
t/t4021-format-patch-numbered.sh
··· 5 5 6 6 test_description='Format-patch numbering options' 7 7 8 + TEST_PASSES_SANITIZE_LEAK=true 8 9 . ./test-lib.sh 9 10 10 11 test_expect_success setup '
+2
t/t4028-format-patch-mime-headers.sh
··· 1 1 #!/bin/sh 2 2 3 3 test_description='format-patch mime headers and extra headers do not conflict' 4 + 5 + TEST_PASSES_SANITIZE_LEAK=true 4 6 . ./test-lib.sh 5 7 6 8 test_expect_success 'create commit with utf-8 body' '
+1
t/t4036-format-patch-signer-mime.sh
··· 2 2 3 3 test_description='format-patch -s should force MIME encoding as needed' 4 4 5 + TEST_PASSES_SANITIZE_LEAK=true 5 6 . ./test-lib.sh 6 7 7 8 test_expect_success setup '
+1
t/t4126-apply-empty.sh
··· 2 2 3 3 test_description='apply empty' 4 4 5 + TEST_PASSES_SANITIZE_LEAK=true 5 6 . ./test-lib.sh 6 7 7 8 test_expect_success setup '
+1
t/t6110-rev-list-sparse.sh
··· 4 4 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main 5 5 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME 6 6 7 + TEST_PASSES_SANITIZE_LEAK=true 7 8 . ./test-lib.sh 8 9 9 10 test_expect_success setup '
+1
t/t9001-send-email.sh
··· 4 4 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main 5 5 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME 6 6 7 + TEST_PASSES_SANITIZE_LEAK=true 7 8 . ./test-lib.sh 8 9 9 10 # May be altered later in the test
-1
t/t9116-git-svn-log.sh
··· 5 5 6 6 test_description='git svn log tests' 7 7 8 - TEST_FAILS_SANITIZE_LEAK=true 9 8 . ./lib-git-svn.sh 10 9 11 10 test_expect_success 'setup repository and import' '