summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-05-23 09:35:53 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2020-05-23 09:35:53 +0100
commitf88e12dbe3982ce9364754198d4cdea79ff575ae (patch)
tree6efac15963d6296033f4b092d1af03816cf5ad32
parent3f201f75c6580743dfe557f99a196eed246df2bf (diff)
downloadlibgit2-f88e12dbe3982ce9364754198d4cdea79ff575ae.tar.gz
checkout::index: free the index
-rw-r--r--tests/checkout/index.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/checkout/index.c b/tests/checkout/index.c
index 7b5f3c79b..508975365 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)