]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ALSA: fix one memory leak in sound jack
authorLu Guanqun <guanqun.lu@intel.com>
Mon, 21 Feb 2011 05:45:04 +0000 (13:45 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 21 Feb 2011 08:33:49 +0000 (09:33 +0100)
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>
sound/core/jack.c

index 4902ae568730c01fbb553c7c1c96fb71524a0411..53b53e97c8960e4415b7c45801d5368cb611690c 100644 (file)
@@ -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;
 }