Commit 69a1a6918c0fc76468329bbb3258d83db8f4c487

Carlos Martín Nieto 2014-06-03T16:18:08

Plug a leak in the tests

1
2
3
4
5
6
7
8
9
10
11
diff --git a/tests/index/filemodes.c b/tests/index/filemodes.c
index e00b9c9..58d7935 100644
--- a/tests/index/filemodes.c
+++ b/tests/index/filemodes.c
@@ -166,4 +166,6 @@ void test_index_filemodes__invalid(void)
 
 	entry.mode = GIT_FILEMODE_BLOB;
 	cl_git_pass(git_index_add(index, &entry));
+
+	git_index_free(index);
 }