]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ALSA] au88x0: mem leak fix in snd_vortex_create()
authorJesper Juhl <jesper.juhl@gmail.com>
Mon, 6 Aug 2007 12:05:27 +0000 (14:05 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 Oct 2007 13:58:25 +0000 (15:58 +0200)
commit6ed44ad3ebec52059f6f534deeb08f1d701852c5
tree902acd208a7dafb6028b3aa0abc79f7e038861f9
parent12f288bffeaa3196ebd5da49c5c7ac06c6188b61
[ALSA] au88x0: mem leak fix in snd_vortex_create()

In sound/pci/au88x0/au88x0.c::snd_vortex_create() :
The Coverity checker found that if we allocate storage for 'chip'
but then leave via the  regions_out:  label, then we end up leaking
the storage allocated for 'chip'.
I believe simply freeing 'chip' before the 'return err;' line is
all we need to fix this, but please double-check me :)

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/au88x0/au88x0.c