diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | unix/tclUnixThrd.c | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2004-07-15 Andreas Kupries <andreask@activestate.com> + * unix/tclUnixThrd.c (TclpFinalizeMutex): Accepted Joe + Mistachkin's patch for [Tcl SF Bug 99453], closing leakage of + mutexes. They were not destroyed properly upon finalization. + +2004-07-15 Andreas Kupries <andreask@activestate.com> + * generic/tclIO.h (CHANNEL_INCLOSE): New flag. Set in * generic/tclIO.c (Tcl_UnregisterChannel): 'Tcl_Close' while the * generic/tclIO.c (Tcl_Close): close callbacks are diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c index ef06dee..edcb0f3 100644 --- a/unix/tclUnixThrd.c +++ b/unix/tclUnixThrd.c @@ -542,6 +542,7 @@ TclpFinalizeMutex(mutexPtr) { pthread_mutex_t *pmutexPtr = *(pthread_mutex_t **)mutexPtr; if (pmutexPtr != NULL) { + pthread_mutex_destroy(pmutexPtr); ckfree((char *)pmutexPtr); *mutexPtr = NULL; } |