qcacmn: Free pdev configuration parameters during pdev detach

Free the memory allocated for the pdev configuration parameters
during pdev detach so that there are no memory leaks

Change-Id: I856cc6e6082197e98ad105053f1e4cffc2d25c53
CRs-Fixed: 2444000
This commit is contained in:
Varun Reddy Yeturu
2019-05-02 22:37:55 -07:00
committed by nshrivas
parent 5ea0a91a89
commit 23fbb8796b
2 changed files with 10 additions and 6 deletions

View File

@@ -365,7 +365,8 @@ struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_attach(void *psoc)
void wlan_cfg_pdev_detach(struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_ctx)
{
qdf_mem_free(wlan_cfg_ctx);
if (wlan_cfg_ctx)
qdf_mem_free(wlan_cfg_ctx);
}
void wlan_cfg_set_num_contexts(struct wlan_cfg_dp_soc_ctxt *cfg, int num)