summaryrefslogtreecommitdiff
path: root/qcwcn/wifi_hal
diff options
context:
space:
mode:
authorSrinivas Dasari <dasaris@codeaurora.org>2017-10-06 19:44:42 +0530
committerRoshan Pius <rpius@google.com>2018-02-05 13:17:17 -0800
commit648f7634b7f2e688f1145eab0a2b1cd2a7b80f2a (patch)
tree8432be2c069722385b3757d8d994d11de32bf457 /qcwcn/wifi_hal
parente36e876b1d4bddc76a95ae873f6fc4753e47c4b2 (diff)
downloadwlan-648f7634b7f2e688f1145eab0a2b1cd2a7b80f2a.tar.gz
Wifi-HAL: Free the buffers allocated for interfaces
Interfaces are getting freed but buffers allocated for the interfaces are not getting freed. Free the same. CRs-Fixed: 2106880 Change-Id: If62828814f1f2ac6b704207c052d0f75f57a57e6 Bug: 72683986 (cherry-picked from 58d77484f9ed7ac71d9b4866b103aa87847bd44f)
Diffstat (limited to 'qcwcn/wifi_hal')
-rw-r--r--qcwcn/wifi_hal/wifi_hal.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/qcwcn/wifi_hal/wifi_hal.cpp b/qcwcn/wifi_hal/wifi_hal.cpp
index 1d9a2be..01b8753 100644
--- a/qcwcn/wifi_hal/wifi_hal.cpp
+++ b/qcwcn/wifi_hal/wifi_hal.cpp
@@ -736,6 +736,18 @@ static void internal_cleaned_up_handler(wifi_handle handle)
info->event_sock = NULL;
}
+ if (info->interfaces) {
+ for (int i = 0; i < info->num_interfaces; i++)
+ free(info->interfaces[i]);
+ free(info->interfaces);
+ }
+
+ if (info->cmd)
+ free(info->cmd);
+
+ if (info->event_cb)
+ free(info->event_cb);
+
if (info->cldctx != NULL) {
cld80211lib_cleanup(info);
} else if (info->user_sock != 0) {