Commit ef6389ad by Vicent Martí

Merge pull request #1836 from libgit2/ntk/fix/leaks

Fix memory leaks
parents ae49719a e839efbe
...@@ -201,6 +201,7 @@ void test_network_remote_local__push_to_bare_remote(void) ...@@ -201,6 +201,7 @@ void test_network_remote_local__push_to_bare_remote(void)
cl_assert(git_push_unpack_ok(push)); cl_assert(git_push_unpack_ok(push));
/* Clean up */ /* Clean up */
git_push_free(push);
git_remote_free(localremote); git_remote_free(localremote);
cl_fixture_cleanup("localbare.git"); cl_fixture_cleanup("localbare.git");
} }
...@@ -236,6 +237,7 @@ void test_network_remote_local__push_to_non_bare_remote(void) ...@@ -236,6 +237,7 @@ void test_network_remote_local__push_to_non_bare_remote(void)
cl_assert_equal_i(0, git_push_unpack_ok(push)); cl_assert_equal_i(0, git_push_unpack_ok(push));
/* Clean up */ /* Clean up */
git_push_free(push);
git_remote_free(localremote); git_remote_free(localremote);
cl_fixture_cleanup("localbare.git"); cl_fixture_cleanup("localbare.git");
} }
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