diff options
author | Srinivas Dasari <dasaris@codeaurora.org> | 2017-10-06 19:38:17 +0530 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2018-02-05 13:17:17 -0800 |
commit | e36e876b1d4bddc76a95ae873f6fc4753e47c4b2 (patch) | |
tree | f8752eac5ec11e750c588a5be6a29cd9c2851c71 /qcwcn | |
parent | 55566f4b47a920ae8af4165f7efa7b892d4c3272 (diff) | |
download | wlan-e36e876b1d4bddc76a95ae873f6fc4753e47c4b2.tar.gz |
Wifi-HAL: Free the buffers of gscan and rssi_monitor handlers
gscan and rssi_monitor handlers are getting freed but buffers
allocated for these are not getting freed. Free the same.
CRs-Fixed: 2106880
Bug: 72683986
Change-Id: I51a0b917061ad0dd0217263110b0c02fce1773cd
(cherry-picked from 8eaa6ba3fb3529d0581ea092ea67c5e9a4793c9a)
Diffstat (limited to 'qcwcn')
-rw-r--r-- | qcwcn/wifi_hal/gscan.cpp | 2 | ||||
-rw-r--r-- | qcwcn/wifi_hal/rssi_monitor.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/qcwcn/wifi_hal/gscan.cpp b/qcwcn/wifi_hal/gscan.cpp index 4781f05..4e9cfb8 100644 --- a/qcwcn/wifi_hal/gscan.cpp +++ b/qcwcn/wifi_hal/gscan.cpp @@ -82,6 +82,8 @@ wifi_error cleanupGscanHandlers(hal_info *info) delete event_handlers->gScanPnoSetPasspointListCmdEventHandler; } memset(event_handlers, 0, sizeof(gscan_event_handlers)); + free(info->gscan_handlers); + info->gscan_handlers = NULL; return WIFI_SUCCESS; } ALOGE ("%s: info or info->gscan_handlers NULL", __FUNCTION__); diff --git a/qcwcn/wifi_hal/rssi_monitor.cpp b/qcwcn/wifi_hal/rssi_monitor.cpp index 66b62e6..c55e074 100644 --- a/qcwcn/wifi_hal/rssi_monitor.cpp +++ b/qcwcn/wifi_hal/rssi_monitor.cpp @@ -67,6 +67,8 @@ wifi_error cleanupRSSIMonitorHandler(hal_info *info) delete event_handlers->mRSSIMonitorCommandInstance; } memset(event_handlers, 0, sizeof(rssi_monitor_event_handlers)); + free(info->rssi_handlers); + info->rssi_handlers = NULL; return WIFI_SUCCESS; } ALOGE ("%s: info or info->rssi_handlers NULL", __FUNCTION__); |