mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 16:24:20 +00:00
Remove repo open immediately after init in test
Calling git_repository_open immediately after git_repository_init results in memory leaks.
This commit is contained in:
parent
f2114d0a35
commit
948431aa01
@ -7,7 +7,6 @@ void test_object_commit_commitstagedfile__initialize(void)
|
||||
{
|
||||
cl_fixture("treebuilder");
|
||||
cl_git_pass(git_repository_init(&repo, "treebuilder/", 0));
|
||||
cl_git_pass(git_repository_open(&repo, "treebuilder/.git"));
|
||||
cl_assert(repo != NULL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user