summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-01-04 17:39:43 +0000
committerCarlos Martín Nieto <cmn@dwim.me>2015-01-04 17:39:43 +0000
commitc4a2fd5c1deda45afb569706827c2b490f705623 (patch)
tree0e39170bbbe6746478fec05a50bcd6b9d12614cc
parent55d9c29aa0c69cdd766c5100fc012d8e0b486e23 (diff)
downloadlibgit2-c4a2fd5c1deda45afb569706827c2b490f705623.tar.gz
Plug a couple of leaks
-rw-r--r--tests/checkout/tree.c1
-rw-r--r--tests/object/tree/attributes.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/tests/checkout/tree.c b/tests/checkout/tree.c
index da3c00d3c..ffb513e23 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 d10c3fffe..413514c48 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));