From: Jaroslav Kysela Date: Thu, 7 Oct 1999 10:24:29 +0000 (+0000) Subject: Added missed snd_ctl_close in snd_pcm_open_subdevice... X-Git-Tag: v1.0.3~1428 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=4b8fda39979707692aee664abc0f166c2a7cc07a;p=alsa-lib.git Added missed snd_ctl_close in snd_pcm_open_subdevice... --- diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c index 7046df8b..a55d191d 100644 --- a/src/pcm/pcm.c +++ b/src/pcm/pcm.c @@ -108,6 +108,7 @@ int snd_pcm_open_subdevice(snd_pcm_t **handle, int card, int device, int subdevi goto __again; } } + snd_ctl_close(ctl); pcm = (snd_pcm_t *) calloc(1, sizeof(snd_pcm_t)); if (pcm == NULL) { close(fd);