summaryrefslogtreecommitdiffstats
path: root/t/t7003-filter-branch.sh
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-09-30 11:14:03 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-30 20:23:07 +0200
commit4cc2cee5ac1491960afc54cc5ef14b50ddceb4d2 (patch)
treeb7bc3a80016c9ba34d3c33096db0f623c91c4378 /t/t7003-filter-branch.sh
parentmidx-write: fix leaking buffer (diff)
downloadgit-4cc2cee5ac1491960afc54cc5ef14b50ddceb4d2.tar.xz
git-4cc2cee5ac1491960afc54cc5ef14b50ddceb4d2.zip
revision: fix memory leaks when rewriting parents
Both `rewrite_parents()` and `remove_duplicate_parents()` may end up dropping some parents from a commit without freeing the respective `struct commit_list` items. This causes a bunch of memory leaks. Plug these. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7003-filter-branch.sh')
-rwxr-xr-xt/t7003-filter-branch.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t7003-filter-branch.sh b/t/t7003-filter-branch.sh
index 5ab4d41ee7..bf3e3f0b67 100755
--- a/t/t7003-filter-branch.sh
+++ b/t/t7003-filter-branch.sh
@@ -4,6 +4,7 @@ test_description='git filter-branch'
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-gpg.sh"