From 0bfac896e66548130c763d015ac16347ced95b84 Mon Sep 17 00:00:00 2001 From: Ricardo Biehl Pasquali Date: Fri, 4 Jan 2019 14:45:35 -0200 Subject: pcm: Cleanup control/status when setup fails Signed-off-by: Ricardo Biehl Pasquali --- src/pcm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/pcm.c b/src/pcm.c index cec4e47..ac454b0 100644 --- a/src/pcm.c +++ b/src/pcm.c @@ -913,6 +913,7 @@ struct pcm *pcm_open(unsigned int card, unsigned int device, return pcm; fail: + pcm_hw_munmap_status(pcm); if (flags & PCM_MMAP) munmap(pcm->mmap_buffer, pcm_frames_to_bytes(pcm, pcm->buffer_size)); fail_close: -- cgit v1.2.3