diff options
| author | Yue Ma <yuem@qca.qualcomm.com> | 2015-12-23 16:50:34 -0800 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-01-07 16:57:50 +0530 |
| commit | fabefeaacb1f6878d465f760233694bc89cb3abd (patch) | |
| tree | 528e84ac8d890ecb014d794fc3ad9980fcbe46f9 | |
| parent | 50f04dddf120516e20af25bdc83c4f28cbaa02c9 (diff) | |
qcacld: Fix potential memory leaks in SSR
During SSR, since VDEV detach won't happen, some contexts saved in VDEV
may not get a chance to be freed. Add change to check these contexts
in SSR shutdown routine to make sure they are freed.
Change-Id: I36d12b3bb524ca107ece2441c1dc1d80293cb31b
CRs-fixed: 957587
| -rw-r--r-- | CORE/SERVICES/WMA/wma.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index f5178b51d468..3d49aecf81c9 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -29685,6 +29685,17 @@ VOS_STATUS wma_wmi_service_close(v_VOID_t *vos_ctx) adf_os_mem_free(wma_handle->interfaces[i].handle); wma_handle->interfaces[i].handle = NULL; } + + if (wma_handle->interfaces[i].addBssStaContext) { + adf_os_mem_free(wma_handle-> + interfaces[i].addBssStaContext); + wma_handle->interfaces[i].addBssStaContext = NULL; + } + + if (wma_handle->interfaces[i].del_staself_req) { + vos_mem_free(wma_handle->interfaces[i].del_staself_req); + wma_handle->interfaces[i].del_staself_req = NULL; + } } vos_mem_free(wma_handle->interfaces); |
