Skip to content

Commit f88e12d

Browse files
committed
checkout::index: free the index
1 parent 3f201f7 commit f88e12d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/checkout/index.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ void test_checkout_index__can_disable_pathspec_match(void)
140140
check_file_contents("testrepo/test10.txt", "original\n");
141141
check_file_contents("testrepo/test11.txt", "original\n");
142142
check_file_contents("testrepo/test12.txt", "modified\n");
143+
144+
git_index_free(index);
143145
}
144146

145147
void test_checkout_index__honor_the_specified_pathspecs(void)

0 commit comments

Comments
 (0)