diff options
| author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-11-08 19:17:47 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-11-21 12:32:48 +0900 |
| commit | dd4143e7bf406a5907ef86c50c77c4667f62375d (patch) | |
| tree | a4a9009f33b1525555bb4b99efb31303aa7c6641 /t/t4067-diff-partial-clone.sh | |
| parent | f1f4ebf432978eb363ed210d0de40f5826ff91e5 (diff) | |
| download | git-dd4143e7bf406a5907ef86c50c77c4667f62375d.tar.gz | |
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/t4067-diff-partial-clone.sh')
| -rwxr-xr-x | t/t4067-diff-partial-clone.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t4067-diff-partial-clone.sh b/t/t4067-diff-partial-clone.sh index 28f42a4046..f60f5cbd65 100755 --- a/t/t4067-diff-partial-clone.sh +++ b/t/t4067-diff-partial-clone.sh @@ -2,6 +2,7 @@ test_description='behavior of diff when reading objects in a partial clone' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success 'git show batches blobs' ' |
