diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-08-08 09:35:56 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-08-08 09:22:21 -0700 |
| commit | fa0f27a19d4e2606ec24d9d4aed4f6c8df986370 (patch) | |
| tree | 0469ce4a2235a21b672b5413b77b44866b43208c /t/t5572-pull-submodule.sh | |
| parent | 1a7e5efdb06a7e3087bf9068220b011f006db43f (diff) | |
| download | git-fa0f27a19d4e2606ec24d9d4aed4f6c8df986370.tar.gz | |
submodule: fix leaking seen submodule names
We keep track of submodules we have already seen via a string map such
that we don't process the same submodule twice. We never free that map
though, causing a memory leak.
Fix this leak by clearing the map.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5572-pull-submodule.sh')
| -rwxr-xr-x | t/t5572-pull-submodule.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t5572-pull-submodule.sh b/t/t5572-pull-submodule.sh index 51744521f7..916e58c166 100755 --- a/t/t5572-pull-submodule.sh +++ b/t/t5572-pull-submodule.sh @@ -5,6 +5,7 @@ test_description='pull can handle submodules' GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB=1 export GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh . "$TEST_DIRECTORY"/lib-submodule-update.sh |
