Commit 26290cd1 by Sascha Cunz

Reset global variable to NULL after free'ing resource

parent e62171e2
......@@ -105,6 +105,7 @@ void test_network_remotes__set_pushspec(void)
void test_network_remotes__save(void)
{
git_remote_free(_remote);
_remote = NULL;
/* Set up the remote and save it to config */
cl_git_pass(git_remote_new(&_remote, _repo, "upstream", "git://github.com/libgit2/libgit2", NULL));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment