Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd70978c authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

ASoC: wm8904 - fix memory leaks

parent bc5954f0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2498,6 +2498,8 @@ static int wm8904_remove(struct snd_soc_codec *codec)

	wm8904_set_bias_level(codec, SND_SOC_BIAS_OFF);
	regulator_bulk_free(ARRAY_SIZE(wm8904->supplies), wm8904->supplies);
	kfree(wm8904->retune_mobile_texts);
	kfree(wm8904->drc_texts);

	return 0;
}