summaryrefslogtreecommitdiffstats
path: root/generic/tclThreadAlloc.c
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)
commitc9b947d0bbffda30051c5afb7e1223f129e9d090 (patch)
treec964268ab4f50450d8f0f23993bb113298a338e8 /generic/tclThreadAlloc.c
parentcd1f05c5c994b178f62d69e7d3065f36efd0383d (diff)
downloadtcl-c9b947d0bbffda30051c5afb7e1223f129e9d090.zip
tcl-c9b947d0bbffda30051c5afb7e1223f129e9d090.tar.gz
tcl-c9b947d0bbffda30051c5afb7e1223f129e9d090.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/tclThreadAlloc.c')
-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) */