config: fix leaked GError when no default config file exists

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2014-07-09 14:37:54 +02:00
parent 397762c2c7
commit a218199eb6

View file

@ -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.