Commit 61ad9bcd3893df47e9856892d1fd38c1da514dd7

Patrick Steinhardt 2016-10-27T11:26:52

tests: vector: fix memory leak

1
2
3
4
5
6
7
8
9
10
11
diff --git a/tests/core/vector.c b/tests/core/vector.c
index 336254c..c2e5d3f 100644
--- a/tests/core/vector.c
+++ b/tests/core/vector.c
@@ -404,4 +404,6 @@ void test_core_vector__reverse(void)
 
 	for (i = 0; i < 5; i++)
 		cl_assert_equal_p(out2[i], git_vector_get(&v, i));
+
+	git_vector_free(&v);
 }