Commit f88e12dbe3982ce9364754198d4cdea79ff575ae

Edward Thomson 2020-05-23T09:35:53

checkout::index: free the index

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/checkout/index.c b/tests/checkout/index.c
index 7b5f3c7..5089753 100644
--- a/tests/checkout/index.c
+++ b/tests/checkout/index.c
@@ -140,6 +140,8 @@ void test_checkout_index__can_disable_pathspec_match(void)
 	check_file_contents("testrepo/test10.txt", "original\n");
 	check_file_contents("testrepo/test11.txt", "original\n");
 	check_file_contents("testrepo/test12.txt", "modified\n");
+
+	git_index_free(index);
 }
 
 void test_checkout_index__honor_the_specified_pathspecs(void)