[alsa-devel] [PATCH] ASoC: soc-core: Fix codec->name memory leak
Ensure that the codec->name is freed when unregistering the codec.
Signed-off-by: Dimitris Papastamos dp@opensource.wolfsonmicro.com --- sound/soc/soc-core.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 862b1af..70d9a73 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -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);
On Thu, 2010-10-21 at 13:19 +0100, Dimitris Papastamos wrote:
Ensure that the codec->name is freed when unregistering the codec.
Signed-off-by: Dimitris Papastamos dp@opensource.wolfsonmicro.com
Acked-by: Liam Girdwood lrg@slimlogic.co.uk
On Thu, Oct 21, 2010 at 01:19:45PM +0100, Dimitris Papastamos wrote:
Ensure that the codec->name is freed when unregistering the codec.
Signed-off-by: Dimitris Papastamos dp@opensource.wolfsonmicro.com
Applied, thanks.
participants (3)
-
Dimitris Papastamos
-
Liam Girdwood
-
Mark Brown