qcacld-3.0: Fix memory leak issues in HDD
In few instances memory allocated dynamically, but
its not freed after usage.
free the allocated space after usage.
CRs-Fixed: 2041467
Change-Id: Iae551cd3acbb6bc2618f05cfdc33e4f742d63192
diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c
index 6bf3b6d..78d7aa8 100644
--- a/core/hdd/src/wlan_hdd_ipa.c
+++ b/core/hdd/src/wlan_hdd_ipa.c
@@ -692,10 +692,13 @@
/* When the same uC OPCODE is already pended, just return */
if (uc_op_work->msg)
- return;
+ goto done;
uc_op_work->msg = msg;
schedule_work(&uc_op_work->work);
+
+done:
+ qdf_mem_free(msg);
}
/**