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)
commit7e7897097053d92587ad9446acdc301fa517cb77
treea848225ed17cd84c6c3eecb0c16e7d4e12bb457f
parent420262fb340338501dbf5de090c3647e1f8d18d4
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