summaryrefslogtreecommitdiff
path: root/tests-clar/commit/parent.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests-clar/commit/parent.c')
-rw-r--r--tests-clar/commit/parent.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests-clar/commit/parent.c b/tests-clar/commit/parent.c
index a00757732..18ce0bba6 100644
--- a/tests-clar/commit/parent.c
+++ b/tests-clar/commit/parent.c
@@ -16,7 +16,10 @@ void test_commit_parent__initialize(void)
void test_commit_parent__cleanup(void)
{
git_commit_free(commit);
+ commit = NULL;
+
git_repository_free(_repo);
+ _repo = NULL;
}
static void assert_nth_gen_parent(unsigned int gen, const char *expected_oid)