summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorvasiljevic <zv@archiware.com>2005-04-07 11:27:17 (GMT)
committervasiljevic <zv@archiware.com>2005-04-07 11:27:17 (GMT)
commit7d3a3e68004adf9dbf1956c5169fa22efbd17b08 (patch)
treec964268ab4f50450d8f0f23993bb113298a338e8 /generic
parent475f1a2d8ee2ea867a0235e5c3b5c56e6e853acb (diff)
downloadtcl-7d3a3e68004adf9dbf1956c5169fa22efbd17b08.zip
tcl-7d3a3e68004adf9dbf1956c5169fa22efbd17b08.tar.gz
tcl-7d3a3e68004adf9dbf1956c5169fa22efbd17b08.tar.bz2
Modified TclFinalizeThreadAlloc() to explicitly call
TclpFreeAllocCache with the NULL-ptr as argument signalling cleanup of private tsd key used only by the threading allocator. Part of fixing the Tcl Bug #1178445.
Diffstat (limited to 'generic')
-rwxr-xr-xgeneric/tclThreadAlloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclThreadAlloc.c b/generic/tclThreadAlloc.c
index fdddeff..6b02906 100755
--- a/generic/tclThreadAlloc.c
+++ b/generic/tclThreadAlloc.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclThreadAlloc.c,v 1.4.2.5 2004/10/28 21:12:38 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclThreadAlloc.c,v 1.4.2.6 2005/04/07 11:27:17 vasiljevic Exp $
*/
#include "tclInt.h"
@@ -980,6 +980,8 @@ TclFinalizeThreadAlloc()
TclpFreeAllocMutex(listLockPtr);
listLockPtr = NULL;
+
+ TclpFreeAllocCache(NULL);
}
#else /* ! defined(TCL_THREADS) && ! defined(USE_THREAD_ALLOC) */