Commit d15b6132 by lhchavez

Fix one memory leak in master

There was one test that wasn't correctly disposing of the repository.
parent cc68c19a
...@@ -92,6 +92,8 @@ void test_refs_branches_upstream__upstream_merge(void) ...@@ -92,6 +92,8 @@ void test_refs_branches_upstream__upstream_merge(void)
cl_git_pass(git_branch_upstream_merge(&buf, repository, "refs/heads/test")); cl_git_pass(git_branch_upstream_merge(&buf, repository, "refs/heads/test"));
cl_assert_equal_s("refs/heads/master", buf.ptr); cl_assert_equal_s("refs/heads/master", buf.ptr);
git_buf_dispose(&buf); git_buf_dispose(&buf);
cl_git_sandbox_cleanup();
} }
void test_refs_branches_upstream__upstream_remote_empty_value(void) void test_refs_branches_upstream__upstream_remote_empty_value(void)
......
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