ALSA: hda - Release ELD proc file

Release ELD proc file when reconfigured so that no leak occurs.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai
2008-11-21 09:11:50 +01:00
parent b94d3539de
commit f208dba97f
3 changed files with 22 additions and 2 deletions

View File

@@ -637,7 +637,10 @@ static int intel_hdmi_init(struct hda_codec *codec)
static void intel_hdmi_free(struct hda_codec *codec)
{
kfree(codec->spec);
struct intel_hdmi_spec *spec = codec->spec;
snd_hda_eld_proc_free(codec, &spec->sink_eld);
kfree(spec);
}
static struct hda_codec_ops intel_hdmi_patch_ops = {