dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Dimitris Papastamos 2010-10-21 13:19:45 +01:00 committed by Mark Brown
parent c429ffbe03
commit 1aafcd4d69
1 changed files with 1 additions and 0 deletions

View File

@ -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);