From ff66f199d5e59c70be84fecdb74a5c4d10679a2c Mon Sep 17 00:00:00 2001 From: Danny Jeongseok Seo Date: Mon, 3 Sep 2012 20:45:19 +0900 Subject: config: Call g_clear_error to prevent memory leak --- src/config.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/config.c b/src/config.c index 9ea75f95..46869144 100644 --- a/src/config.c +++ b/src/config.c @@ -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); -- cgit v1.2.3