Skip to content
Unverified Commit 7620fe91 authored by Bard liao's avatar Bard liao Committed by Mark Brown
Browse files

ASoC: topology: fix memory leak in soc_tplg_dapm_widget_create



template.sname and template.name are only freed when an error occur.
They should be freed in the success return case, too.

Signed-off-by: default avatarBard liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 34db6a3e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment