diff options
author | Dimitris Papastamos <dp@opensource.wolfsonmicro.com> | 2010-10-21 13:19:45 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-10-21 13:47:38 -0700 |
commit | 1aafcd4d6966453ab44587c6e1214d463f3e88e2 (patch) | |
tree | 43e3bed7702a603671ef61b8445c36e4fa8c2c64 /sound/soc/soc-core.c | |
parent | c429ffbe038a649d121e6cecba5cf66777f39370 (diff) | |
download | kernel_samsung_aries-1aafcd4d6966453ab44587c6e1214d463f3e88e2.zip kernel_samsung_aries-1aafcd4d6966453ab44587c6e1214d463f3e88e2.tar.gz kernel_samsung_aries-1aafcd4d6966453ab44587c6e1214d463f3e88e2.tar.bz2 |
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/soc-core.c')
-rw-r--r-- | 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); |