diff options
| author | Krishna Kumaar Natarajan <kknatara@qca.qualcomm.com> | 2015-06-16 11:17:11 -0700 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2015-06-22 20:50:25 +0530 |
| commit | 8d800ddc2daeefa87ffddac905879f8bc603bab3 (patch) | |
| tree | 55d95e2251db6414b8de82bea9d0f4164dbca292 | |
| parent | bf04d6e34433a188fbcc9687fd42ff33eb689801 (diff) | |
qcacld-2.0: Fix memory leak in vdev detach
Fix memory leak in vdev detach when iface handle is NULL.
Change-Id: Ib21c1b87ce6c20c71066cf84a29e7637ff64110a
CRs-Fixed: 854438
| -rw-r--r-- | CORE/SERVICES/WMA/wma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index 1d98012cdf2f..d8b846bb960c 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -6513,6 +6513,8 @@ static VOS_STATUS wma_vdev_detach(tp_wma_handle wma_handle, WMA_LOGE("handle of vdev_id %d is NULL vdev is already freed", vdev_id); adf_os_spin_unlock_bh(&wma_handle->vdev_detach_lock); + vos_mem_free(pdel_sta_self_req_param); + pdel_sta_self_req_param = NULL; return status; } |
