From 545fbd2b09ebb3fbe4c18b4029b13bf9b956738f Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 12 Mar 2015 16:31:26 +0100 Subject: [PATCH] config/test: fix memleaks in test-config.c --- src/tests/config/test-config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/config/test-config.c b/src/tests/config/test-config.c index 6b1d3e36bb..f3aeb603d9 100644 --- a/src/tests/config/test-config.c +++ b/src/tests/config/test-config.c @@ -112,7 +112,7 @@ static void test_config_non_existent (void) { NMConfig *config; - GError *error = NULL; + gs_free_error GError *error = NULL; setup_config (SRCDIR "/no-such-file", "/no/such/dir", NULL); config = nm_config_new (&error); @@ -124,7 +124,7 @@ static void test_config_parse_error (void) { NMConfig *config; - GError *error = NULL; + gs_free_error GError *error = NULL; setup_config (SRCDIR "/bad.conf", "/no/such/dir", NULL); config = nm_config_new (&error); @@ -274,7 +274,7 @@ static void test_config_confdir_parse_error (void) { NMConfig *config; - GError *error = NULL; + gs_free_error GError *error = NULL; /* Using SRCDIR as the conf dir will pick up bad.conf */ setup_config (SRCDIR "/NetworkManager.conf", SRCDIR, NULL);