From 3bbfdba40ce244123a763ba6fef8a7a6014e90d0 Mon Sep 17 00:00:00 2001 From: "chleun.moon" Date: Mon, 27 Mar 2017 10:52:08 +0900 Subject: [PATCH] Fix memory leak (WGID 173557, 173558) Change-Id: Id85b0aeb35a7e9669674c7961ff889ed5967214b Signed-off-by: cheoleun --- src/wifi-config.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wifi-config.c b/src/wifi-config.c index efcfd22..aa2ab05 100755 --- a/src/wifi-config.c +++ b/src/wifi-config.c @@ -432,6 +432,7 @@ static gboolean _set_field(const gchar *config_id, const gchar *key, const gchar keyfile = __get_configuration_keyfile(group_name); if (keyfile == NULL) { ERR("Fail to __get_configuration_keyfile"); + g_free(group_name); return FALSE; } @@ -491,6 +492,7 @@ static gboolean _get_field(const gchar *config_id, const gchar *key, gchar **val keyfile = __get_configuration_keyfile(group_name); if (keyfile == NULL) { ERR("Fail to __get_configuration_keyfile"); + g_free(group_name); return FALSE; } -- 2.7.4