]> git.alsa-project.org Git - alsa-lib.git/commit
Don't set PCM pointer at error in snd_pcm_hw_open()
authorTakashi Iwai <tiwai@suse.de>
Mon, 6 Aug 2007 14:09:27 +0000 (16:09 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 6 Aug 2007 14:09:27 +0000 (16:09 +0200)
commitc7e1676dcd1664d2bdf52bc399e3ae90fe2d2494
treedf18da723fb608d7afee175116af8f40b773b725
parentfca29a6172548f368f140a1701d1f339b0326797
Don't set PCM pointer at error in snd_pcm_hw_open()

snd_pcm_hw_open() may set a non-NULL to pcmp even if it returns an error.
Some codes like dmix expects it's NULL, and cause the double free().
src/pcm/pcm_hw.c