diff options
author | Lu Guanqun <guanqun.lu@intel.com> | 2011-02-21 00:45:04 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-02-21 03:33:49 -0500 |
commit | eeda276bef36026fce3029e6423e1a09a50c359e (patch) | |
tree | 45304df293c62577611acfb0ead9a4b88f4ded45 /sound | |
parent | 89724958e5d596bb91328644c97dd80399443e87 (diff) |
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/core/jack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/core/jack.c b/sound/core/jack.c index 4902ae568730..53b53e97c896 100644 --- a/sound/core/jack.c +++ b/sound/core/jack.c | |||
@@ -141,6 +141,7 @@ int snd_jack_new(struct snd_card *card, const char *id, int type, | |||
141 | 141 | ||
142 | fail_input: | 142 | fail_input: |
143 | input_free_device(jack->input_dev); | 143 | input_free_device(jack->input_dev); |
144 | kfree(jack->id); | ||
144 | kfree(jack); | 145 | kfree(jack); |
145 | return err; | 146 | return err; |
146 | } | 147 | } |