Commit 4e547eee31b1ee3a4395b9ba9670af8c29927de7

nulltoken 2012-11-13T07:11:24

test: fix memory leak

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests-clar/network/fetchlocal.c b/tests-clar/network/fetchlocal.c
index b5bb176..bff0bb0 100644
--- a/tests-clar/network/fetchlocal.c
+++ b/tests-clar/network/fetchlocal.c
@@ -52,6 +52,8 @@ void test_network_fetchlocal__partial(void)
 	cl_git_pass(git_remote_download(origin, transfer_cb, &callcount));
 	cl_git_pass(git_remote_update_tips(origin));
 
+	git_strarray_free(&refnames);
+
 	cl_git_pass(git_reference_list(&refnames, repo, GIT_REF_LISTALL));
 	cl_assert_equal_i(19, refnames.count); /* 18 remote + 1 local */
 	cl_assert(callcount > 0);