Change-Id: I423a3e680e528a36f98db5bdc2f68db15e707015
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
if (data->ssid->passphrase && g_strcmp0(data->ssid->passphrase, "") != 0
&& !data->ssid->eap) {
ret = send_decryption_request(data->ssid->passphrase, connect_data);
- if (ret < 0)
+ if (ret < 0) {
SUPPLICANT_DBG("Decryption request failed %d", ret);
+ g_free(connect_data->ssid);
+ g_free(connect_data->path);
+ dbus_free(connect_data);
+ }
} else
#endif
supplicant_dbus_method_call(data->interface->path,