diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c index eb8f686d..06a48f4c 100644 --- a/src/pcm/pcm.c +++ b/src/pcm/pcm.c @@ -2763,6 +2763,7 @@ int snd_pcm_new(snd_pcm_t **pcmp, snd_pcm_type_t type, const char *name, pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); #endif pthread_mutex_init(&pcm->lock, &attr); + pthread_mutexattr_destroy(&attr); /* use locking as default; * each plugin may suppress this in its open call */