From 48c27f86bbe9678c7e01a90a2cec7a30327b0e90 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Mon, 28 Feb 2011 16:51:17 +0200 Subject: Implement reference counting for git_objects All `git_object` instances looked up from the repository are reference counted. User is expected to use the new `git_object_close` when an object is no longer needed to force freeing it. Signed-off-by: Vicent Marti --- tests/t09-tree.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'tests') diff --git a/tests/t09-tree.c b/tests/t09-tree.c index cb127556b..6bc2a84bd 100644 --- a/tests/t09-tree.c +++ b/tests/t09-tree.c @@ -101,8 +101,6 @@ BEGIN_TEST(write0, "add a new entry to a tree and write it back to disk") must_pass(git_object_write((git_object *)tree)); must_pass(remove_loose_object(REPOSITORY_FOLDER, (git_object *)tree)); - git_object_free((git_object *)tree); - git_repository_free(repo); END_TEST @@ -152,7 +150,6 @@ BEGIN_TEST(write1, "add several entries in-memory and validate that they exist; */ must_pass(remove_loose_object(REPOSITORY_FOLDER, (git_object *)tree)); - git_object_free((git_object *)tree); git_repository_free(repo); END_TEST -- cgit v1.2.1