From a218199eb6cb36fb9ecb5191301ea7b6b6cb6527 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 9 Jul 2014 14:37:54 +0200 Subject: [PATCH] config: fix leaked GError when no default config file exists Signed-off-by: Thomas Haller --- src/config/nm-config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config/nm-config.c b/src/config/nm-config.c index f6688b75da..104d83acef 100644 --- a/src/config/nm-config.c +++ b/src/config/nm-config.c @@ -403,6 +403,7 @@ find_base_config (NMConfig *config, GError **error) g_propagate_error (error, my_error); return FALSE; } + g_clear_error (&my_error); /* If for some reason no config file exists, use the default * config file path.