diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-09-30 11:14:03 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-09-30 20:23:07 +0200 |
commit | 4cc2cee5ac1491960afc54cc5ef14b50ddceb4d2 (patch) | |
tree | b7bc3a80016c9ba34d3c33096db0f623c91c4378 /t/t7003-filter-branch.sh | |
parent | midx-write: fix leaking buffer (diff) | |
download | git-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-x | t/t7003-filter-branch.sh | 1 |
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" |