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
c6807a40dc (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>
This commit is contained in:
committed by
Junio C Hamano
parent
f1f4ebf432
commit
dd4143e7bf
@ -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' '
|
||||
|
||||
Reference in New Issue
Block a user