Skip to content

Commit cd70978

Browse files
AxelLinbroonie
authored andcommitted
ASoC: wm8904 - fix memory leaks
Signed-off-by: Axel Lin <[email protected]> Acked-by: Liam Girdwood <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent bc5954f commit cd70978

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/soc/codecs/wm8904.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2498,6 +2498,8 @@ static int wm8904_remove(struct snd_soc_codec *codec)
24982498

24992499
wm8904_set_bias_level(codec, SND_SOC_BIAS_OFF);
25002500
regulator_bulk_free(ARRAY_SIZE(wm8904->supplies), wm8904->supplies);
2501+
kfree(wm8904->retune_mobile_texts);
2502+
kfree(wm8904->drc_texts);
25012503

25022504
return 0;
25032505
}

0 commit comments

Comments
 (0)