From c4e3e797d11bf7d8a9873a193e182d2537b0ee6a Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Sun, 16 Dec 2012 12:27:11 -0800 Subject: [PATCH] Ensure static variables are nulled after every test --- tests-clar/network/push.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests-clar/network/push.c b/tests-clar/network/push.c index f8856091f..788af5267 100644 --- a/tests-clar/network/push.c +++ b/tests-clar/network/push.c @@ -211,6 +211,10 @@ void test_network_push__cleanup(void) { if (_remote) git_remote_free(_remote); + _remote = NULL; + + /* Freed by cl_git_sandbox_cleanup */ + _repo = NULL; record_callbacks_data_clear(&_record_cbs_data);