diff options
Diffstat (limited to 'tests-clar/notes')
-rw-r--r-- | tests-clar/notes/notes.c | 2 | ||||
-rw-r--r-- | tests-clar/notes/notesref.c | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests-clar/notes/notes.c b/tests-clar/notes/notes.c index dfd7f5231..706bc03ce 100644 --- a/tests-clar/notes/notes.c +++ b/tests-clar/notes/notes.c @@ -12,6 +12,8 @@ void test_notes_notes__initialize(void) void test_notes_notes__cleanup(void) { git_signature_free(_sig); + _sig = NULL; + cl_git_sandbox_cleanup(); } diff --git a/tests-clar/notes/notesref.c b/tests-clar/notes/notesref.c index 79ad0afee..67c4003c6 100644 --- a/tests-clar/notes/notesref.c +++ b/tests-clar/notes/notesref.c @@ -16,10 +16,17 @@ void test_notes_notesref__initialize(void) void test_notes_notesref__cleanup(void) { git_note_free(_note); + _note = NULL; + git_signature_free(_sig); + _sig = NULL; + git_config_free(_cfg); + _cfg = NULL; git_repository_free(_repo); + _repo = NULL; + cl_fixture_cleanup("testrepo.git"); } |