summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Jeongseok Seo <s.seo@samsung.com>2012-09-03 20:45:19 +0900
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-09-07 08:36:56 +0300
commitff66f199d5e59c70be84fecdb74a5c4d10679a2c (patch)
tree4f5d30d0952c24eaaafdcfc50367a9a6053b5e8a
parentfe8f27b9c109c672f0c407983612c9d42df0cfc7 (diff)
downloadconnman-ff66f199d5e59c70be84fecdb74a5c4d10679a2c.tar.gz
connman-ff66f199d5e59c70be84fecdb74a5c4d10679a2c.tar.bz2
connman-ff66f199d5e59c70be84fecdb74a5c4d10679a2c.zip
config: Call g_clear_error to prevent memory leak
-rw-r--r--src/config.c1
1 files changed, 1 insertions, 0 deletions
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);