summaryrefslogtreecommitdiff
path: root/tests/odb
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-03-05 20:28:49 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2014-03-07 16:03:15 +0100
commitae32c54e5806cf8517beeb057cf640ed346508eb (patch)
tree7ac45d3d7598966459e5fcb57e05fe790564cef5 /tests/odb
parenta07b169834a11f60a2baa98f9735c2dfe7e4a1ee (diff)
downloadlibgit2-ae32c54e5806cf8517beeb057cf640ed346508eb.tar.gz
Plug a few leaks in the tests
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)