Plug a couple of leaks
diff --git a/tests/checkout/tree.c b/tests/checkout/tree.c
index da3c00d..ffb513e 100644
--- a/tests/checkout/tree.c
+++ b/tests/checkout/tree.c
@@ -1095,6 +1095,7 @@ void test_checkout_tree__case_changing_rename(void)
cl_assert(index_entry = git_index_get_bypath(index, "README", 0));
cl_assert_equal_s("README", index_entry->path);
+ git_index_free(index);
git_signature_free(signature);
git_tree_free(tree);
git_commit_free(dir_commit);
diff --git a/tests/object/tree/attributes.c b/tests/object/tree/attributes.c
index d10c3ff..413514c 100644
--- a/tests/object/tree/attributes.c
+++ b/tests/object/tree/attributes.c
@@ -38,7 +38,6 @@ void test_object_tree_attributes__group_writable_tree_entries_created_with_an_an
git_tree *tree;
const git_tree_entry *entry;
- cl_git_pass(git_repository_open(&repo, cl_fixture("deprecated-mode.git")));
cl_git_pass(git_oid_fromstr(&tid, tree_oid));
cl_git_pass(git_tree_lookup(&tree, repo, &tid));