mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 22:25:04 +00:00
Plug a couple of leaks
This commit is contained in:
parent
55d9c29aa0
commit
c4a2fd5c1d
@ -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);
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user