From: Axel Lin Date: Tue, 23 Nov 2010 07:56:21 +0000 (+0800) Subject: ASoC: max98088 - fix a memory leak X-Git-Tag: v3.0~2537^2~11^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc5954f00e80c55140f546c80f34a8660bdd2c5f;p=platform%2Fkernel%2Flinux-amlogic.git ASoC: max98088 - fix a memory leak Signed-off-by: Axel Lin Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c index 470cb93..d63e287 100644 --- a/sound/soc/codecs/max98088.c +++ b/sound/soc/codecs/max98088.c @@ -2019,7 +2019,10 @@ err_access: static int max98088_remove(struct snd_soc_codec *codec) { + struct max98088_priv *max98088 = snd_soc_codec_get_drvdata(codec); + max98088_set_bias_level(codec, SND_SOC_BIAS_OFF); + kfree(max98088->eq_texts); return 0; }