]> git.alsa-project.org Git - alsa-plugins.git/commit
a52: fix the double free for rec->slave and rec
authorJaroslav Kysela <perex@perex.cz>
Thu, 29 Jul 2021 12:51:55 +0000 (14:51 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 29 Jul 2021 12:55:09 +0000 (14:55 +0200)
commitda157e978d73f1947bb77637c324e19d003366d4
tree39a2f592107f195f9df31802b8bf9a964624f417
parent4219f4b3fded74d7b07a54c3ba8661d7a18c3b6c
a52: fix the double free for rec->slave and rec

The function snd_pcm_ioplug_delete() calls the close ops callback already,
thus exit more early in the error path.

Fixes: https://github.com/alsa-project/alsa-plugins/issues/31
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
a52/pcm_a52.c