From: Danny Jeongseok Seo Date: Mon, 3 Sep 2012 11:45:19 +0000 (+0900) Subject: config: Call g_clear_error to prevent memory leak X-Git-Tag: 1.7~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff66f199d5e59c70be84fecdb74a5c4d10679a2c;p=platform%2Fupstream%2Fconnman.git config: Call g_clear_error to prevent memory leak --- diff --git a/src/config.c b/src/config.c index 9ea75f9..4686914 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);