Fix a svace for memory leak 78/102978/1
authortaesub kim <taesub.kim@samsung.com>
Wed, 7 Dec 2016 02:37:40 +0000 (11:37 +0900)
committertaesub kim <taesub.kim@samsung.com>
Wed, 7 Dec 2016 02:38:19 +0000 (11:38 +0900)
Change-Id: I11ee52cf8d380880d3eb5e456a9f6cd4d536618a
igned-off-by: Taesub Kim <taesub.kim@samsung.com>

src/wifi-config.c

index 1c590dd..9a910e8 100755 (executable)
@@ -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;
 }