summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2018-05-23 12:47:34 (GMT)
committerJaehyun Kim <jeik01.kim@samsung.com>2018-05-23 12:49:26 (GMT)
commit146f8947c8f8e7c16802d8a653ab0e01e09b4a01 (patch)
treece3c5701b38f602255bd5b51714508916929809c
parent3a843d0d6419f18bd972b0fb57541da194bd37c8 (diff)
downloadconnman-submit/tizen/20180524.035245.zip
connman-submit/tizen/20180524.035245.tar.gz
connman-submit/tizen/20180524.035245.tar.bz2
Change-Id: I423a3e680e528a36f98db5bdc2f68db15e707015 Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
-rw-r--r--gsupplicant/supplicant.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index 23fa236..49d391f 100644
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -5920,8 +5920,12 @@ static void network_remove_result(const char *error,
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,