From 4bef6d9c478eb20f55a197d86a4cbf1cd09ef566 Mon Sep 17 00:00:00 2001 From: hyunuktak Date: Fri, 2 Dec 2016 11:16:56 +0900 Subject: [PATCH] Fix a svace for memory leak Change-Id: I11ee52cf8d380880d3eb5e456a9f6cd4d536648a Signed-off-by: hyunuktak --- packaging/net-config.spec | 2 +- src/wifi-config.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packaging/net-config.spec b/packaging/net-config.spec index 87b167e..b3b5b00 100755 --- a/packaging/net-config.spec +++ b/packaging/net-config.spec @@ -1,6 +1,6 @@ Name: net-config Summary: TIZEN Network Configuration service -Version: 1.1.94 +Version: 1.1.95 Release: 2 Group: System/Network License: Apache-2.0 diff --git a/src/wifi-config.c b/src/wifi-config.c index 1c590dd..9a910e8 100755 --- a/src/wifi-config.c +++ b/src/wifi-config.c @@ -217,9 +217,10 @@ static GKeyFile *__get_configuration_keyfile(const gchar *group_name) keyfile = netconfig_keyfile_load(path); if (keyfile == NULL) { ERR("keyfile[%s] is NULL", path); - g_free(path); } + g_free(path); + return keyfile; } -- 2.7.4