wlan: Fix memory leak while sending WDI OEM Data request Indication
Free the memory alloted for wdiOemDataReqNewConfig for WDI status
success case as well
Change-Id: I2f163f4d9f8ce3e64575f288a75e1861f32eb008
CRs-Fixed: 1002830
diff --git a/CORE/WDA/src/wlan_qct_wda.c b/CORE/WDA/src/wlan_qct_wda.c
index 2ac7431..a6ac635 100644
--- a/CORE/WDA/src/wlan_qct_wda.c
+++ b/CORE/WDA/src/wlan_qct_wda.c
@@ -21412,10 +21412,9 @@
{
VOS_TRACE( VOS_MODULE_ID_WDA, VOS_TRACE_LEVEL_ERROR,
FL("Failure in OemDataReqIndNew WDI API, free all memory %d"), wstatus);
- vos_mem_free(wdiOemDataReqNewConfig);
}
- // Free the memory allocated in sme_OemDataReqNew
+ vos_mem_free(wdiOemDataReqNewConfig);
vos_mem_free(pOemDataReqNewConfig);
return status;