From 9311423c34bbd369928152c6a2b669204276ddd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Thu, 21 Jun 2012 02:30:30 +0200 Subject: [PATCH] tests: plug a leak in the repo tests The second call to assert_config_entry_on_init_bytype is cleaned up by the main cleanup function, but that overwrites the first _repo. Make sure that one doesn't leak. --- tests-clar/repo/init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests-clar/repo/init.c b/tests-clar/repo/init.c index 2e70c511e..1ba355ed6 100644 --- a/tests-clar/repo/init.c +++ b/tests-clar/repo/init.c @@ -245,5 +245,6 @@ void test_repo_init__reinit_doesnot_overwrite_ignorecase(void) void test_repo_init__sets_logAllRefUpdates_according_to_type_of_repository(void) { assert_config_entry_on_init_bytype("core.logallrefupdates", GIT_ENOTFOUND, true); + git_repository_free(_repo); assert_config_entry_on_init_bytype("core.logallrefupdates", true, false); }