]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
aaf: do not free twice aaf - snd_pcm_close() is called from snd_pcm_ioplug_delete()
authorJaroslav Kysela <perex@perex.cz>
Thu, 25 Oct 2018 06:34:57 +0000 (08:34 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 25 Oct 2018 06:35:04 +0000 (08:35 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
aaf/pcm_aaf.c

index 65fa0fb1552392abb28cb0de888ac9101203848e..b1c3d83645a7e3b359c0e131eda0aff63c40182a 100644 (file)
@@ -1186,7 +1186,7 @@ SND_PCM_PLUGIN_DEFINE_FUNC(aaf)
        if (res < 0) {
                SNDERR("Failed to set hw constraints");
                snd_pcm_ioplug_delete(&aaf->io);
-               goto err;
+               return res;
        }
 
        *pcmp = aaf->io.pcm;