summaryrefslogtreecommitdiff
path: root/mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'mutex.c')
-rw-r--r--mutex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mutex.c b/mutex.c
index 6a24d6f..2259713 100644
--- a/mutex.c
+++ b/mutex.c
@@ -197,6 +197,7 @@ pthread_mutex_destroy(pthread_mutex_t *mutex)
if (result == 0)
{
mx->mutex = 0;
+ free(mx);
*mutex = NULL;
}