aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <[email protected]>2022-03-31 14:48:45 +0300
committerMark Brown <[email protected]>2022-04-04 14:25:38 +0100
commit5708cc2f4b50c7bf27234eee77e1d9487533bbd3 (patch)
treedfc25d53f470dcd946d75ba87a19cb8466845b04 /lib/mpi/mpi-sub-ui.c
parentacc72863e0f11cd0bedc888b663700229f9ba5ff (diff)
ASoC: SOF: topology: Fix memory leak of scontrol->name
The scontrol->name is allocated with kstrdup, it must be freed before the scontrol is freed to avoid leaking memory. The constant leaking happens via sof_widget_unload() path on every module removal. Fixes: b5cee8feb1d48 ("ASoC: SOF: topology: Make control parsing IPC agnostic") Signed-off-by: Peter Ujfalusi <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions