Commit 83a04a69da717aee7f313433b6b1eb7e3c4ebdec

Carlos Martín Nieto 2015-06-17T16:08:20

Merge pull request #3227 from jeffhostetler/memory_leak__tests_network_refspecs Fix memory leak in tests/network/refspecs.c

1
2
3
4
5
6
7
8
9
10
11
diff --git a/tests/network/refspecs.c b/tests/network/refspecs.c
index 614d91d..c47f197 100644
--- a/tests/network/refspecs.c
+++ b/tests/network/refspecs.c
@@ -155,4 +155,6 @@ void test_network_refspecs__matching(void)
 	cl_assert_equal_s(":", spec.string);
 	cl_assert_equal_s("", spec.src);
 	cl_assert_equal_s("", spec.dst);
+
+	git_refspec__free(&spec);
 }