ASoC: soc-core: Fix codec->name memory leak
PATCH 1/1 ASoC: soc-core: Fix codec->name memory leak
Ensure that the codec->name is freed when unregistering the codec.
Signed-off-by Dimitris Papastamos <[email protected]>
--- sound/soc/soc-core.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
sound/soc/soc-core.c +1 -0
@@ -3299,6 +3299,7 @@ found:if (codec->reg_cache)kfree (codec->reg_cache); +kfree (codec->name);kfree (codec); }EXPORT_SYMBOL_GPL (snd_soc_unregister_codec);
Signature · 1 line
1.7.3.1
Quoted 3 lines · Dimitris Papastamos
Ensure that the
codec->nameis freed when unregistering the codec.Signed-off-by Dimitris Papastamos <[email protected]>
Acked-by Liam Girdwood <[email protected]>
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk
Mark Brown
AppliedQuoted 3 lines · Dimitris Papastamos
Ensure that the
codec->nameis freed when unregistering the codec.Signed-off-by Dimitris Papastamos <[email protected]>
Applied, thanks.