Plug a leak in the tests
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);
}