summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--mutex.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b9dc259..49dc36c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Sep 8 12:56:13 1999 Ross Johnson <rpj@swan.canberra.edu.au>
+
+ * mutex.c (pthread_mutex_destroy): Free mutex memory.
+ - Milan Gardian <mg@tatramed.sk>
+
1999-08-22 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* exit.c (pthread_exit): Fix reference to potentially
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;
}