qcacld-3.0: Fix potential memory leak issues in driver code
Currently in these APIs, driver has a potential mem leak if the code deviates from the success path:- 1. sme_ap_disable_intra_bss_fwd, param pSapDisableIntraFwd was not freed in case of mutex acquire gets fail. 2. sme_set_wisa_params, param cds_msg_wisa_params was not freed in case of mutex cquire fail, and in case of msg failed to post to scheduler. 3. sme_update_sta_inactivity_timeout, param inactivity_time was not freed in any case, and has to be freed after use. 4. wma_del_tdls_sta, param peerStateParams needs to be freed in every failure case, in which the driver sends a del rsp in error case. Change-Id: Ibb6061dc399c0f408e7469e91d8084c82786a561 CRs-Fixed: 2466435
Loading
Please register or sign in to comment