config: Call g_clear_error to prevent memory leak
authorDanny Jeongseok Seo <s.seo@samsung.com>
Mon, 3 Sep 2012 11:45:19 +0000 (20:45 +0900)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 7 Sep 2012 05:36:56 +0000 (08:36 +0300)
src/config.c

index 9ea75f9..4686914 100644 (file)
@@ -455,6 +455,7 @@ static int load_config(struct connman_config *config)
                config->protected = protected;
        else
                config->protected = TRUE;
+       g_clear_error(&error);
 
        groups = g_key_file_get_groups(keyfile, &length);