diff options
Diffstat (limited to 'tests-clar/clone')
| -rw-r--r-- | tests-clar/clone/network.c | 4 | ||||
| -rw-r--r-- | tests-clar/clone/nonetwork.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/tests-clar/clone/network.c b/tests-clar/clone/network.c index 1304f7728..def5214c3 100644 --- a/tests-clar/clone/network.c +++ b/tests-clar/clone/network.c @@ -17,8 +17,10 @@ void test_clone_network__initialize(void) static void cleanup_repository(void *path) { - if (g_repo) + if (g_repo) { git_repository_free(g_repo); + g_repo = NULL; + } cl_fixture_cleanup((const char *)path); } diff --git a/tests-clar/clone/nonetwork.c b/tests-clar/clone/nonetwork.c index 59f43362f..fbebe5460 100644 --- a/tests-clar/clone/nonetwork.c +++ b/tests-clar/clone/nonetwork.c @@ -14,8 +14,11 @@ void test_clone_nonetwork__initialize(void) static void cleanup_repository(void *path) { - if (g_repo) + if (g_repo) { git_repository_free(g_repo); + g_repo = NULL; + } + cl_fixture_cleanup((const char *)path); } |
