summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xclient/commands.c3
-rwxr-xr-xplugins/wifi.c6
2 files changed, 8 insertions, 1 deletions
diff --git a/client/commands.c b/client/commands.c
index 0ea37331..b7316c54 100755
--- a/client/commands.c
+++ b/client/commands.c
@@ -698,6 +698,9 @@ static int tether_set_ssid(char *ssid, char *passphrase, int set_tethering, int
return -ENXIO;
}
+#if defined TIZEN_EXT
+ g_free(tether);
+#endif
return -EINPROGRESS;
}
diff --git a/plugins/wifi.c b/plugins/wifi.c
index a3c31aef..e9e4ae94 100755
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -6457,8 +6457,12 @@ static GSupplicantSSID *ssid_ap_init(const struct connman_technology *technology
ret = connman_technology_get_wifi_tethering(technology,
&ssid, &passphrase,
&freq);
- if (ret == false)
+ if (ret == false) {
+#if defined TIZEN_EXT
+ g_free(ap);
+#endif
return NULL;
+ }
ap->mode = G_SUPPLICANT_MODE_MASTER;
#if defined TIZEN_EXT