From cfacde50dcf2c29e4387829b12d22beda7db8784 Mon Sep 17 00:00:00 2001 From: taesub kim Date: Wed, 7 Dec 2016 11:37:40 +0900 Subject: [PATCH] Fix a svace for memory leak Change-Id: I11ee52cf8d380880d3eb5e456a9f6cd4d536618a igned-off-by: Taesub Kim --- src/wifi-config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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