summaryrefslogtreecommitdiff
path: root/tests-clar/refs/foreachglob.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests-clar/refs/foreachglob.c')
-rw-r--r--tests-clar/refs/foreachglob.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests-clar/refs/foreachglob.c b/tests-clar/refs/foreachglob.c
index 121342933..8ecce9cfe 100644
--- a/tests-clar/refs/foreachglob.c
+++ b/tests-clar/refs/foreachglob.c
@@ -18,7 +18,10 @@ void test_refs_foreachglob__initialize(void)
void test_refs_foreachglob__cleanup(void)
{
git_reference_free(fake_remote);
+ fake_remote = NULL;
+
git_repository_free(repo);
+ repo = NULL;
cl_fixture_cleanup("testrepo.git");
}