Commit 771cde43181d0ba2fffdc9f533f5ef572b1482ee

Carlos Martín Nieto 2012-02-01T04:40:18

tests: free the remotes temp buffer

1
2
3
4
5
6
7
8
9
10
diff --git a/tests-clar/network/remotes.c b/tests-clar/network/remotes.c
index a0a940f..f3a45d6 100644
--- a/tests-clar/network/remotes.c
+++ b/tests-clar/network/remotes.c
@@ -57,4 +57,5 @@ void test_network_remotes__transform_r(void)
 
 	cl_git_pass(git_refspec_transform_r(&buf,  _refspec, "refs/heads/master"));
 	cl_assert(!strcmp(git_buf_cstr(&buf), "refs/remotes/test/master"));
+	git_buf_free(&buf);
 }