Commit 948431aa by Russell Belfer

Remove repo open immediately after init in test

Calling git_repository_open immediately after git_repository_init
results in memory leaks.
parent f2114d0a
......@@ -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);
}
......
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