提交 1aafcd4d 编写于 作者: D Dimitris Papastamos 提交者: Mark Brown

ASoC: soc-core: Fix codec->name memory leak

Ensure that the codec->name is freed when unregistering the codec.
Signed-off-by: NDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 c429ffbe
......@@ -3299,6 +3299,7 @@ void snd_soc_unregister_codec(struct device *dev)
if (codec->reg_cache)
kfree(codec->reg_cache);
kfree(codec->name);
kfree(codec);
}
EXPORT_SYMBOL_GPL(snd_soc_unregister_codec);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册