Message ID | faf0afbd-8241-428a-ad9a-f284d915ffa2@gmx.de (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Series | Fixes for memory leaks and corruptions | expand |
diff --git a/plugins/wifi.c b/plugins/wifi.c index ba5aa2d7..cc30d258 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -3387,8 +3387,10 @@ 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) { + g_free(ap); return NULL; + } ap->mode = G_SUPPLICANT_MODE_MASTER; ap->ssid = g_strdup(ssid);