aboutsummaryrefslogtreecommitdiffstats
path: root/t/t7501-commit-basic-functionality.sh
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-06-11 11:19:26 +0200
committerJunio C Hamano <gitster@pobox.com>2024-06-11 13:15:05 -0700
commitbb8c43d5cd9648f868e11e462392a38a43354692 (patch)
tree539202886f12a697feab3629baeab2bb634910b7 /t/t7501-commit-basic-functionality.sh
parent14da26230a7644a2f9dfbc3f43d9d7ab6e0074e9 (diff)
downloadgit-bb8c43d5cd9648f868e11e462392a38a43354692.tar.gz
notes-utils: free note trees when releasing copied notes
While we clear most of the members of `struct notes_rewrite_cfg` in `finish_copy_notes_for_rewrite()`, we do not clear the notes tree. Fix this to plug this memory leak. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7501-commit-basic-functionality.sh')
-rwxr-xr-xt/t7501-commit-basic-functionality.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t7501-commit-basic-functionality.sh b/t/t7501-commit-basic-functionality.sh
index cc12f99f11..52f5e28154 100755
--- a/t/t7501-commit-basic-functionality.sh
+++ b/t/t7501-commit-basic-functionality.sh
@@ -9,6 +9,7 @@ test_description='git commit'
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
. "$TEST_DIRECTORY/lib-diff.sh"