diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-11-08 21:17:47 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-11-21 06:32:48 +0300 |
commit | dd4143e7bf406a5907ef86c50c77c4667f62375d (patch) | |
tree | a4a9009f33b1525555bb4b99efb31303aa7c6641 /t/t5614-clone-submodules-shallow.sh | |
parent | f1f4ebf432978eb363ed210d0de40f5826ff91e5 (diff) |
connected.c: free the "struct packed_git"
The "new_pack" we allocate in check_connected() wasn't being
free'd. Let's do that before we return from the function. This has
leaked ever since "new_pack" was added to this function in
c6807a40dcd (clone: open a shortcut for connectivity check,
2013-05-26).
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 't/t5614-clone-submodules-shallow.sh')
-rwxr-xr-x | t/t5614-clone-submodules-shallow.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t5614-clone-submodules-shallow.sh b/t/t5614-clone-submodules-shallow.sh index 0c85ef834a..c2a2bb453e 100755 --- a/t/t5614-clone-submodules-shallow.sh +++ b/t/t5614-clone-submodules-shallow.sh @@ -2,6 +2,7 @@ test_description='Test shallow cloning of repos with submodules' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh pwd=$(pwd) |