aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pcm.c1
1 files changed, 1 insertions, 0 deletions
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: