summaryrefslogtreecommitdiff
path: root/sound/core/jack.c
diff options
context:
space:
mode:
authorLu Guanqun <guanqun.lu@intel.com>2011-02-21 13:45:04 +0800
committerTakashi Iwai <tiwai@suse.de>2011-02-21 09:33:49 +0100
commiteeda276bef36026fce3029e6423e1a09a50c359e (patch)
tree45304df293c62577611acfb0ead9a4b88f4ded45 /sound/core/jack.c
parent89724958e5d596bb91328644c97dd80399443e87 (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/core/jack.c')
-rw-r--r--sound/core/jack.c1
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,
fail_input:
input_free_device(jack->input_dev);
+ kfree(jack->id);
kfree(jack);
return err;
}