mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ALSA: fix one memory leak in sound jack
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com> Reviewed-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
89724958e5
commit
eeda276bef
1 changed files with 1 additions and 0 deletions
|
@ -141,6 +141,7 @@ int snd_jack_new(struct snd_card *card, const char *id, int type,
|
|||
|
||||
fail_input:
|
||||
input_free_device(jack->input_dev);
|
||||
kfree(jack->id);
|
||||
kfree(jack);
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue