Plug a couple of leaks

This commit is contained in:
Carlos Martín Nieto 2015-01-04 17:39:43 +00:00
parent 55d9c29aa0
commit c4a2fd5c1d
2 changed files with 1 additions and 1 deletions

View File

@ -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);

View File

@ -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));