From 425e03ba9bc05c2975bde07c95fbec7670751b37 Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 6 Apr 2004 16:34:50 +0000 Subject: Close memory leak. --- ChangeLog | 9 +++++++-- FAQ | 5 ++++- ptw32_threadDestroy.c | 1 + 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 + + * ptw32_threadDestroy.c: Destroy threadLock mutex to + close a memory leak. + 2004-02-13 Gustav Hallberg * pthread_equal.c: Remove redundant equality logic. @@ -6,7 +11,7 @@ * sem_timedwait.c (sem_timedwait): Fix timeout calculations. -2003-09-14 Ross Johnson +2003-09-14 Ross Johnson * 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 +2003-09-12 Ross Johnson * 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__) /* -- cgit v1.2.3