From: Jaroslav Kysela Date: Thu, 25 Oct 2018 06:34:57 +0000 (+0200) Subject: aaf: do not free twice aaf - snd_pcm_close() is called from snd_pcm_ioplug_delete() X-Git-Tag: v1.1.8~8 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=400633ace02939e5e4f2a0af9dca33d342b4759d;p=alsa-plugins.git aaf: do not free twice aaf - snd_pcm_close() is called from snd_pcm_ioplug_delete() Signed-off-by: Jaroslav Kysela --- diff --git a/aaf/pcm_aaf.c b/aaf/pcm_aaf.c index 65fa0fb..b1c3d83 100644 --- a/aaf/pcm_aaf.c +++ b/aaf/pcm_aaf.c @@ -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;