From: Lu Guanqun Date: Mon, 21 Feb 2011 05:45:04 +0000 (+0800) Subject: ALSA: fix one memory leak in sound jack X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eeda276bef36026fce3029e6423e1a09a50c359e;p=linux-beck.git ALSA: fix one memory leak in sound jack Signed-off-by: Lu Guanqun Reviewed-by: Wu Fengguang Signed-off-by: Takashi Iwai --- 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; }