Commit e839efbe2468905d82ffb717c225a738de6f192c

nulltoken 2013-09-07T17:51:24

tests: Fix memory leaks

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/tests-clar/network/remote/local.c b/tests-clar/network/remote/local.c
index 79eb73c..c8edd37 100644
--- a/tests-clar/network/remote/local.c
+++ b/tests-clar/network/remote/local.c
@@ -201,6 +201,7 @@ void test_network_remote_local__push_to_bare_remote(void)
 	cl_assert(git_push_unpack_ok(push));
 
 	/* Clean up */
+	git_push_free(push);
 	git_remote_free(localremote);
 	cl_fixture_cleanup("localbare.git");
 }
@@ -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));
 
 	/* Clean up */
+	git_push_free(push);
 	git_remote_free(localremote);
 	cl_fixture_cleanup("localbare.git");
 }