From cb1071bce719802a4054c7e92c65616308f73bd3 Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Wed, 13 Nov 2019 17:16:33 +0100 Subject: [PATCH] alsa-seq: fix seq_open error path If snd_seq_open fails, do not call snd_seq_close(NULL). --- spa/plugins/alsa/alsa-seq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/alsa/alsa-seq.c b/spa/plugins/alsa/alsa-seq.c index 551b3cdd0..4f553d6fe 100644 --- a/spa/plugins/alsa/alsa-seq.c +++ b/spa/plugins/alsa/alsa-seq.c @@ -57,7 +57,7 @@ static int seq_open(struct seq_state *state, struct seq_conn *conn) SND_SEQ_OPEN_DUPLEX, 0)) < 0) { spa_log_error(state->log, "open failed: %s", snd_strerror(res)); - goto error_exit_close; + return res; } /* client id */