summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpj <rpj>2004-04-06 16:34:50 +0000
committerrpj <rpj>2004-04-06 16:34:50 +0000
commit425e03ba9bc05c2975bde07c95fbec7670751b37 (patch)
tree5079f22f34c279970d2fc5cc35d057c4022c505e
parent3c54879a28c4cdbef9dbd59246b7de8c0536dabc (diff)
Close memory leak.
-rw-r--r--ChangeLog9
-rw-r--r--FAQ5
-rw-r--r--ptw32_threadDestroy.c1
3 files changed, 12 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index cdcd9d6..4299c66 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-06 P. van Bruggen <pietvb@newbridges.nl>
+
+ * ptw32_threadDestroy.c: Destroy threadLock mutex to
+ close a memory leak.
+
2004-02-13 Gustav Hallberg <gustav@virtutech.com>
* pthread_equal.c: Remove redundant equality logic.
@@ -6,7 +11,7 @@
* sem_timedwait.c (sem_timedwait): Fix timeout calculations.
-2003-09-14 Ross Johnson <ross@callisto.canberra.edu.au>
+2003-09-14 Ross Johnson <rpj@callisto.canberra.edu.au>
* pthread_setschedparam.c (pthread_setschedparam): Attempt to map
all priority levels between max and min (as returned by
@@ -39,7 +44,7 @@
* implement.h (struct pthread_t_): Add new sched_priority element.
-2003-09-12 Ross Johnson <ross@callisto.canberra.edu.au>
+2003-09-12 Ross Johnson <rpj@callisto.canberra.edu.au>
* sched_get_priority_min.c (sched_get_priority_min): On error should return -1
with errno set.
diff --git a/FAQ b/FAQ
index 9bed82a..c08bcbc 100644
--- a/FAQ
+++ b/FAQ
@@ -385,8 +385,11 @@ Ross
Q 10 How do I create thread-safe applications using
---- pthreadGCE.dll, libpthreadw32.a and Mingw32?
-See Thomas Pfaff's email at:
+If you must use a MinGW32 gcc version 2.95 or earlier then
+see Thomas Pfaff's email at:
http://sources.redhat.com/ml/pthreads-win32/2002/msg00000.html
+Later versions should thread-safe.
+
------------------------------------------------------------------------------
diff --git a/ptw32_threadDestroy.c b/ptw32_threadDestroy.c
index 868b3f3..be6542a 100644
--- a/ptw32_threadDestroy.c
+++ b/ptw32_threadDestroy.c
@@ -70,6 +70,7 @@ ptw32_threadDestroy (pthread_t thread)
}
(void) pthread_mutex_destroy(&threadCopy.cancelLock);
+ (void) pthread_mutex_destroy(&threadCopy.threadLock);
#if ! defined (__MINGW32__) || defined (__MSVCRT__)
/*