summaryrefslogtreecommitdiff
path: root/sound/core
diff options
context:
space:
mode:
authorLu Guanqun <guanqun.lu@intel.com>2011-02-21 08:45:04 +0300
committerTakashi Iwai <tiwai@suse.de>2011-02-21 11:33:49 +0300
commiteeda276bef36026fce3029e6423e1a09a50c359e (patch)
tree45304df293c62577611acfb0ead9a4b88f4ded45 /sound/core
parent89724958e5d596bb91328644c97dd80399443e87 (diff)
downloadlinux-eeda276bef36026fce3029e6423e1a09a50c359e.tar.xz
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')
-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;
}