summaryrefslogtreecommitdiff
path: root/tests/odb
diff options
context:
space:
mode:
Diffstat (limited to 'tests/odb')
-rw-r--r--tests/odb/backend/nobackend.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/odb/backend/nobackend.c b/tests/odb/backend/nobackend.c
index 7ed5acced..783641e8f 100644
--- a/tests/odb/backend/nobackend.c
+++ b/tests/odb/backend/nobackend.c
@@ -18,6 +18,11 @@ void test_odb_backend_nobackend__initialize(void)
git_repository_set_config(_repo, config);
git_repository_set_odb(_repo, odb);
git_repository_set_refdb(_repo, refdb);
+
+ /* The set increases the refcount and we don't want them anymore */
+ git_config_free(config);
+ git_odb_free(odb);
+ git_refdb_free(refdb);
}
void test_odb_backend_nobackend__cleanup(void)