mirror of
https://github.com/git/git.git
synced 2024-11-27 12:03:55 +08:00
t/helper: fix leaking repository in partial-clone helper
We initialize but never clear a repository in the partial-clone test helper. Plug this leak. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
6361dea6e8
commit
58888c0401
@ -26,6 +26,8 @@ static void object_info(const char *gitdir, const char *oid_hex)
|
||||
if (oid_object_info_extended(&r, &oid, &oi, 0))
|
||||
die("could not obtain object info");
|
||||
printf("%d\n", (int) size);
|
||||
|
||||
repo_clear(&r);
|
||||
}
|
||||
|
||||
int cmd__partial_clone(int argc, const char **argv)
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='partial clone'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-terminal.sh
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user