From 1aafcd4d6966453ab44587c6e1214d463f3e88e2 Mon Sep 17 00:00:00 2001 From: Dimitris Papastamos Date: Thu, 21 Oct 2010 13:19:45 +0100 Subject: [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 Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- sound/soc/soc-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 862b1af5fbdf..70d9a7394b2b 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -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); -- GitLab