Commit eeda276b authored by Lu Guanqun's avatar Lu Guanqun Committed by Takashi Iwai

ALSA: fix one memory leak in sound jack

Signed-off-by: default avatarLu Guanqun <guanqun.lu@intel.com>
Reviewed-by: default avatarWu Fengguang <fengguang.wu@intel.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 89724958
...@@ -141,6 +141,7 @@ int snd_jack_new(struct snd_card *card, const char *id, int type, ...@@ -141,6 +141,7 @@ int snd_jack_new(struct snd_card *card, const char *id, int type,
fail_input: fail_input:
input_free_device(jack->input_dev); input_free_device(jack->input_dev);
kfree(jack->id);
kfree(jack); kfree(jack);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment