diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-06-11 11:19:31 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-06-11 22:15:05 +0200 |
commit | 11ee9a75e7d6f149431f69400c81006f8ccecad5 (patch) | |
tree | 4f68bf6d6779a8f94d77b75bbd39cf1bcc5b40f3 /t/t5605-clone-local.sh | |
parent | notes-utils: free note trees when releasing copied notes (diff) | |
download | git-11ee9a75e7d6f149431f69400c81006f8ccecad5.tar.xz git-11ee9a75e7d6f149431f69400c81006f8ccecad5.zip |
bundle: plug leaks in `create_bundle()`
When creating a bundle, we set up a revision walk, but never release
data associated with it. Furthermore, we create a mostly-shallow copy of
that revision walk where we only adapt its pending objects such that we
can reuse the walk. While that copy must not be released, the pending
objects array need to be.
Plug those memory leaks by releasing the revision walk and the pending
objects of the copied revision walk.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5605-clone-local.sh')
-rwxr-xr-x | t/t5605-clone-local.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t5605-clone-local.sh b/t/t5605-clone-local.sh index a3055869bc..9a1390a98f 100755 --- a/t/t5605-clone-local.sh +++ b/t/t5605-clone-local.sh @@ -4,6 +4,7 @@ test_description='test local clone' GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh repo_is_hardlinked() { |