diff options
author | Jaehyun Kim <jeik01.kim@samsung.com> | 2018-05-23 21:47:34 +0900 |
---|---|---|
committer | Jaehyun Kim <jeik01.kim@samsung.com> | 2018-05-23 21:49:26 +0900 |
commit | 146f8947c8f8e7c16802d8a653ab0e01e09b4a01 (patch) | |
tree | ce3c5701b38f602255bd5b51714508916929809c | |
parent | 3a843d0d6419f18bd972b0fb57541da194bd37c8 (diff) | |
download | connman-146f8947c8f8e7c16802d8a653ab0e01e09b4a01.tar.gz connman-146f8947c8f8e7c16802d8a653ab0e01e09b4a01.tar.bz2 connman-146f8947c8f8e7c16802d8a653ab0e01e09b4a01.zip |
gsupplicant: Fixed resource leaksubmit/tizen/20180524.035245accepted/tizen/unified/20180524.050028
Change-Id: I423a3e680e528a36f98db5bdc2f68db15e707015
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
-rw-r--r-- | gsupplicant/supplicant.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c index 23fa2366..49d391fe 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, |