summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpj <rpj>1999-09-10 05:24:06 +0000
committerrpj <rpj>1999-09-10 05:24:06 +0000
commit4cd9537cd00fcbab78c1e0d2125dac4a9117e815 (patch)
treed455fb4feabfdfac7990ab79f6c6f0381919dd45
parent3f0d4d7d7c5bece6799d966f0de7891c6d242261 (diff)
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>
-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;
}