aboutsummaryrefslogtreecommitdiffstats
path: root/t/t6004-rev-list-path-optim.sh
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-09-26 13:47:05 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-27 08:25:37 -0700
commitfa016423c748cd142a40c10eb7f9cc4c4fffbb98 (patch)
tree24deafaad2b7051a396b5f97c1db619d1108d1dd /t/t6004-rev-list-path-optim.sh
parentb6c3f8e12c0a521450923ddbcf7a19a81aa3c4e7 (diff)
downloadgit-fa016423c748cd142a40c10eb7f9cc4c4fffbb98.tar.gz
revision: fix leaking parents when simplifying commits
When simplifying commits, e.g. because they are treesame with their parents, we unset the commit's parent pointers but never free them. Plug the resulting memory leaks. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6004-rev-list-path-optim.sh')
-rwxr-xr-xt/t6004-rev-list-path-optim.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t6004-rev-list-path-optim.sh b/t/t6004-rev-list-path-optim.sh
index cd4f420e2a..5416241ede 100755
--- a/t/t6004-rev-list-path-optim.sh
+++ b/t/t6004-rev-list-path-optim.sh
@@ -16,6 +16,7 @@ test_description='git rev-list trivial path optimization test
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success setup '