]> git.baikalelectronics.ru Git - kernel.git/commit
[ALSA] Memory leak in sound/pcmcia/pdaudiocf/pdaudiocf.c
authorEric Sesterhenn <snakebyte@gmx.de>
Wed, 12 Apr 2006 10:56:10 +0000 (12:56 +0200)
committerJaroslav Kysela <perex@suse.cz>
Wed, 12 Jul 2006 18:07:23 +0000 (20:07 +0200)
commit8a13eea847314828695badfef53a6eb12de79a0f
treea61061cf2d4be2e55cdf04ba6378e68cff8e5a46
parent84dd389991132df4d2df7128052faed0cfe25664
[ALSA] Memory leak in sound/pcmcia/pdaudiocf/pdaudiocf.c

if one of the first three CS_CHECKS fails, we goto cs_failed:
In this case parse we donr kfree() parse. Since the the last three
CS_CHECKS might also fail, i moved the kfree() below all the CS_CHECKs
and added one in the error path. This fixes coverity bug id #1099

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pcmcia/pdaudiocf/pdaudiocf.c