From: Dimitris Papastamos Date: Thu, 21 Oct 2010 12:19:45 +0000 (+0100) Subject: ASoC: soc-core: Fix codec->name memory leak X-Git-Tag: v2.6.37-rc1~82^2~8^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1aafcd4d6966453ab44587c6e1214d463f3e88e2;p=platform%2Fkernel%2Flinux-exynos.git 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 --- 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);