Merge "Revise background scan routine" into tizen
[platform/core/connectivity/net-config.git] / src / wifi-state.c
index 0bdd05e..5d89458 100755 (executable)
@@ -352,7 +352,7 @@ static void _deregister_network_notification(void)
 static void _set_power_save(gboolean power_save)
 {
        gboolean result;
-       const char *if_path;
+       char *if_path;
        GVariant *input_args = NULL;
        static gboolean old_state = TRUE;
        const gchar *args_disable = "POWERMODE 1";
@@ -383,6 +383,8 @@ static void _set_power_save(gboolean power_save)
        else
                old_state = power_save;
 
+       g_free(if_path);
+
        return;
 }