Commit b656e5eb4f29e05e5cff2231a368be45db894807

Vicent Marti 2015-11-02T12:06:50

merge: Fix memory leak in test

1
2
3
4
5
6
7
8
9
10
11
diff --git a/tests/revwalk/mergebase.c b/tests/revwalk/mergebase.c
index d486bba..ee078b3 100644
--- a/tests/revwalk/mergebase.c
+++ b/tests/revwalk/mergebase.c
@@ -509,5 +509,6 @@ void test_revwalk_mergebase__remove_redundant(void)
 	cl_assert_equal_i(1, result.count);
 	cl_assert_equal_oid(&base, &result.ids[0]);
 
+	git_oidarray_free(&result);
 	git_repository_free(repo);
 }