aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>2010-10-21 08:19:45 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-10-21 16:47:38 -0400
commit1aafcd4d6966453ab44587c6e1214d463f3e88e2 (patch)
tree43e3bed7702a603671ef61b8445c36e4fa8c2c64 /sound/soc
parentc429ffbe038a649d121e6cecba5cf66777f39370 (diff)
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> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/soc-core.c1
1 files changed, 1 insertions, 0 deletions
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 @@ found:
3299 3299
3300 if (codec->reg_cache) 3300 if (codec->reg_cache)
3301 kfree(codec->reg_cache); 3301 kfree(codec->reg_cache);
3302 kfree(codec->name);
3302 kfree(codec); 3303 kfree(codec);
3303} 3304}
3304EXPORT_SYMBOL_GPL(snd_soc_unregister_codec); 3305EXPORT_SYMBOL_GPL(snd_soc_unregister_codec);