Commit 5498c318a247d5ceb8b2cca6838796fa631cf0a6

Edward Thomson 2019-08-27T13:10:53

apply: free test data

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/tests/apply/tree.c b/tests/apply/tree.c
index 5557765..5154f13 100644
--- a/tests/apply/tree.c
+++ b/tests/apply/tree.c
@@ -87,8 +87,8 @@ void test_apply_tree__adds_file(void)
 	cl_git_pass(git_apply_to_tree(&index, repo, a_tree, diff, NULL));
 	merge_test_index(index, expected, 7);
 
+	git_index_free(index);
 	git_diff_free(diff);
 	git_tree_free(a_tree);
 	git_commit_free(a_commit);
 }
-