diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-11-23 02:56:21 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-23 09:29:51 -0500 |
commit | bc5954f00e80c55140f546c80f34a8660bdd2c5f (patch) | |
tree | fb9b3737fefc901c4df0b55c631efdbdcd7d9018 /sound/soc | |
parent | 7a479b02843c8d78ef51a64d1168592258440c97 (diff) |
ASoC: max98088 - fix a memory leak
Signed-off-by: Axel Lin <axel.lin@gmail.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/codecs/max98088.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c index 470cb93b1d1f..d63e28773eb1 100644 --- a/sound/soc/codecs/max98088.c +++ b/sound/soc/codecs/max98088.c | |||
@@ -2019,7 +2019,10 @@ err_access: | |||
2019 | 2019 | ||
2020 | static int max98088_remove(struct snd_soc_codec *codec) | 2020 | static int max98088_remove(struct snd_soc_codec *codec) |
2021 | { | 2021 | { |
2022 | struct max98088_priv *max98088 = snd_soc_codec_get_drvdata(codec); | ||
2023 | |||
2022 | max98088_set_bias_level(codec, SND_SOC_BIAS_OFF); | 2024 | max98088_set_bias_level(codec, SND_SOC_BIAS_OFF); |
2025 | kfree(max98088->eq_texts); | ||
2023 | 2026 | ||
2024 | return 0; | 2027 | return 0; |
2025 | } | 2028 | } |