Commit f9a98f9442c0b1c22f8212753fda85603fa948e8

punkymaniac 2021-11-22T15:16:26

Fix test fail because of memory leak

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/tests/worktree/worktree.c b/tests/worktree/worktree.c
index d44e0a4..ccb6cde 100644
--- a/tests/worktree/worktree.c
+++ b/tests/worktree/worktree.c
@@ -311,6 +311,7 @@ void test_worktree_worktree__add_no_checkout(void)
 
 	git_str_dispose(&path);
 	git_worktree_free(wt);
+	git_index_free(index);
 	git_repository_free(wtrepo);
 }