mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-05 20:42:32 +00:00
tests: plug a leak in the repo tests
The second call to assert_config_entry_on_init_bytype is cleaned up by the main cleanup function, but that overwrites the first _repo. Make sure that one doesn't leak.
This commit is contained in:
parent
b3aa440641
commit
9311423c34
@ -245,5 +245,6 @@ void test_repo_init__reinit_doesnot_overwrite_ignorecase(void)
|
||||
void test_repo_init__sets_logAllRefUpdates_according_to_type_of_repository(void)
|
||||
{
|
||||
assert_config_entry_on_init_bytype("core.logallrefupdates", GIT_ENOTFOUND, true);
|
||||
git_repository_free(_repo);
|
||||
assert_config_entry_on_init_bytype("core.logallrefupdates", true, false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user