Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 650c5307 authored by Dhoat Harpal's avatar Dhoat Harpal
Browse files

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: default avatarDhoat Harpal <hdhoat@codeaurora.org>
parent 098abe14
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2296,6 +2296,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: