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

Commit 66d3a89b authored by Jeff Hugo's avatar Jeff Hugo Committed by Matt Wagantall
Browse files

soc: qcom: glink_smem_native_xprt: Plug open command memory leak



When processing an open command, the smem native transport allocates some
memory to store the name of the channel, which gets passed up to the core.
The core makes a copy of the name, so the memory can be freed once the call
to the core returns.  The transport does not free this memory, leading to a
leak.

Free the memory allocated for the channel name after calling into the core
to plug the leak.

Change-Id: Ia789c06a7f7104c4e1f145996dc006d07d292752
Signed-off-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
parent 9b1a253a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment