ALSA: fix possible memory leak in snd_mixer_oss_build_input()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 2 Sep 2012 14:10:27 +0000 (22:10 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 3 Sep 2012 08:08:28 +0000 (10:08 +0200)
commit1f3b14072bacc80d62597ed7798e3daf7615dcc6
treea848225ed17cd84c6c3eecb0c16e7d4e12bb457f
parenta03e4a66c71b2bb33dc795eb6451a3d2ad1398bb
ALSA: fix possible memory leak in snd_mixer_oss_build_input()

uinfo has been allocated in this function and should be
freed before leaving from the error handling cases.

spatch with a semantic match is used to found this problem.
(http://coccinelle.lip6.fr/)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/oss/mixer_oss.c