diff options
author | Edward Thomson <ethomson@microsoft.com> | 2013-04-20 03:19:53 +0400 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2013-04-20 03:43:17 +0400 |
commit | 4e4eab52f7c5062ea21ea278a38e48700e753883 (patch) | |
tree | 4c8133d7595b355e3150b4525e25ad25103d10ff /tests-clar/refs | |
parent | 4a38143c93dc705bc40109e3f79d7fac722d44d7 (diff) |
alloc doesn't take a refdb; git_refdb_free nicely in the tests
Diffstat (limited to 'tests-clar/refs')
-rw-r--r-- | tests-clar/refs/delete.c | 1 | ||||
-rw-r--r-- | tests-clar/refs/pack.c | 1 | ||||
-rw-r--r-- | tests-clar/refs/rename.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/tests-clar/refs/delete.c b/tests-clar/refs/delete.c index ac517d869..053f41229 100644 --- a/tests-clar/refs/delete.c +++ b/tests-clar/refs/delete.c @@ -88,4 +88,5 @@ void test_refs_delete__packed_only(void) /* This should pass */ cl_git_pass(git_reference_delete(ref)); git_reference_free(ref); + git_refdb_free(refdb); } diff --git a/tests-clar/refs/pack.c b/tests-clar/refs/pack.c index 973abae30..412c4c5fd 100644 --- a/tests-clar/refs/pack.c +++ b/tests-clar/refs/pack.c @@ -25,6 +25,7 @@ static void packall(void) cl_git_pass(git_repository_refdb(&refdb, g_repo)); cl_git_pass(git_refdb_compress(refdb)); + git_refdb_free(refdb); } void test_refs_pack__empty(void) diff --git a/tests-clar/refs/rename.c b/tests-clar/refs/rename.c index e39abeb05..5ab84c48e 100644 --- a/tests-clar/refs/rename.c +++ b/tests-clar/refs/rename.c @@ -284,6 +284,7 @@ void test_refs_rename__overwrite(void) git_reference_free(ref_one); git_reference_free(ref_one_new); git_reference_free(ref_two); + git_refdb_free(refdb); } |