mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-11 21:39:25 +00:00
Merge pull request #1156 from scunz/another_testcrash
Reset global variable to NULL after free'ing resource
This commit is contained in:
commit
957a3e3604
@ -105,6 +105,7 @@ void test_network_remotes__set_pushspec(void)
|
|||||||
void test_network_remotes__save(void)
|
void test_network_remotes__save(void)
|
||||||
{
|
{
|
||||||
git_remote_free(_remote);
|
git_remote_free(_remote);
|
||||||
|
_remote = NULL;
|
||||||
|
|
||||||
/* Set up the remote and save it to config */
|
/* Set up the remote and save it to config */
|
||||||
cl_git_pass(git_remote_new(&_remote, _repo, "upstream", "git://github.com/libgit2/libgit2", NULL));
|
cl_git_pass(git_remote_new(&_remote, _repo, "upstream", "git://github.com/libgit2/libgit2", NULL));
|
||||||
|
Loading…
Reference in New Issue
Block a user