summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhoat Harpal <hdhoat@codeaurora.org>2017-08-03 20:27:38 +0530
committerDhoat Harpal <hdhoat@codeaurora.org>2017-08-18 15:53:51 +0530
commit40fa8e073535aa7e1751e79560ab25f12053d9b0 (patch)
treecff1525b26db0ed8189e61706d3bae622dbd5525
parenta49bb61510b938152025049730fa922c5da950a1 (diff)
soc: qcom: glink_smem_native_xprt: Fix memory leak during qos init
In function parse_qos_dt_params, memory is allocated to arr32 but it is never freed. Free memory when exiting the function. CRs-Fixed: 2093722 Change-Id: Ic1fc58c6685990e2865ef4033b54303d47311560 Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
-rw-r--r--drivers/soc/qcom/glink_smem_native_xprt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/qcom/glink_smem_native_xprt.c b/drivers/soc/qcom/glink_smem_native_xprt.c
index 37193bbb23b7..042108d4035b 100644
--- a/drivers/soc/qcom/glink_smem_native_xprt.c
+++ b/drivers/soc/qcom/glink_smem_native_xprt.c
@@ -2242,6 +2242,7 @@ static int parse_qos_dt_params(struct device_node *node,
einfo->ramp_time_us[i] = arr32[i];
rc = 0;
+ kfree(arr32);
return rc;
invalid_key: