ALSA: fix one memory leak in sound jack
authorLu Guanqun <[email protected]>
Mon, 21 Feb 2011 05:45:04 +0000 (13:45 +0800)
committerTakashi Iwai <[email protected]>
Mon, 21 Feb 2011 08:33:49 +0000 (09:33 +0100)
Signed-off-by: Lu Guanqun <[email protected]>
Reviewed-by: Wu Fengguang <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
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;
 }