diff options
author | Vicent Martà <vicent@github.com> | 2012-11-23 15:17:48 -0800 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2012-11-23 15:17:48 -0800 |
commit | c9f1658eada3cbce63010d7a5111561da0d9056b (patch) | |
tree | 6b1d929f4ed9c8accf289df8964eb953f5b0abc9 /tests-clar/diff/blob.c | |
parent | e226861e8d840b5a869a10c70ac5a1537c50e296 (diff) | |
parent | 9094d30b932ca4b47dba81e76011efe05455a44a (diff) | |
download | libgit2-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/diff/blob.c')
-rw-r--r-- | tests-clar/diff/blob.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests-clar/diff/blob.c b/tests-clar/diff/blob.c index 0a37e829d..a9ebcc207 100644 --- a/tests-clar/diff/blob.c +++ b/tests-clar/diff/blob.c @@ -30,7 +30,10 @@ void test_diff_blob__initialize(void) void test_diff_blob__cleanup(void) { git_blob_free(d); + d = NULL; + git_blob_free(alien); + alien = NULL; cl_git_sandbox_cleanup(); } |