summaryrefslogtreecommitdiff
path: root/tests-clar/notes/notesref.c
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2012-11-23 15:17:48 -0800
committerVicent Martí <vicent@github.com>2012-11-23 15:17:48 -0800
commitc9f1658eada3cbce63010d7a5111561da0d9056b (patch)
tree6b1d929f4ed9c8accf289df8964eb953f5b0abc9 /tests-clar/notes/notesref.c
parente226861e8d840b5a869a10c70ac5a1537c50e296 (diff)
parent9094d30b932ca4b47dba81e76011efe05455a44a (diff)
downloadlibgit2-c9f1658eada3cbce63010d7a5111561da0d9056b.tar.gz
Merge pull request #1098 from scunz/cleanup_in_cleanup
Reset all static variables to NULL in clar's __cleanup
Diffstat (limited to 'tests-clar/notes/notesref.c')
-rw-r--r--tests-clar/notes/notesref.c7
1 files changed, 7 insertions, 0 deletions
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");
}