projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8972495
)
ALSA: fix one memory leak in sound jack
author
Lu Guanqun
<guanqun.lu@intel.com>
Mon, 21 Feb 2011 05:45:04 +0000
(13:45 +0800)
committer
Takashi 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
patch
|
blob
|
blame
|
history
diff --git
a/sound/core/jack.c
b/sound/core/jack.c
index 4902ae568730c01fbb553c7c1c96fb71524a0411..53b53e97c8960e4415b7c45801d5368cb611690c 100644
(file)
--- 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;
}