Commit fad0aea9feedd19dcf063614fe1c53790ae218ec

Carlos Martín Nieto 2014-10-27T01:47:40

tests: fix leak

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/tests/network/fetchlocal.c b/tests/network/fetchlocal.c
index 965ca2d..f4f0921 100644
--- a/tests/network/fetchlocal.c
+++ b/tests/network/fetchlocal.c
@@ -146,6 +146,7 @@ void test_network_fetchlocal__multi_remotes(void)
 
 	cl_git_pass(git_reference_list(&refnames, repo));
 	cl_assert_equal_i(32, (int)refnames.count);
+	git_strarray_free(&refnames);
 
 	cl_git_pass(git_remote_load(&test2, repo, "test_with_pushurl"));
 	cl_git_pass(git_remote_set_url(test2, cl_git_fixture_url("testrepo.git")));