Commit 3dc0207bc07b6214d395812c0cef0d785cafa071

Sascha Cunz 2012-12-19T05:21:11

revwalk-test: Don't leak the second repository

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/tests-clar/revwalk/mergebase.c b/tests-clar/revwalk/mergebase.c
index 9707d42..4faf615 100644
--- a/tests-clar/revwalk/mergebase.c
+++ b/tests-clar/revwalk/mergebase.c
@@ -15,6 +15,9 @@ void test_revwalk_mergebase__cleanup(void)
 {
 	git_repository_free(_repo);
 	_repo = NULL;
+
+	git_repository_free(_repo2);
+	_repo2 = NULL;
 }
 
 void test_revwalk_mergebase__single1(void)