diff options
author | vasiljevic <zv@archiware.com> | 2005-04-07 11:27:17 (GMT) |
---|---|---|
committer | vasiljevic <zv@archiware.com> | 2005-04-07 11:27:17 (GMT) |
commit | c9b947d0bbffda30051c5afb7e1223f129e9d090 (patch) | |
tree | c964268ab4f50450d8f0f23993bb113298a338e8 /generic | |
parent | cd1f05c5c994b178f62d69e7d3065f36efd0383d (diff) | |
download | tcl-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')
-rwxr-xr-x | generic/tclThreadAlloc.c | 4 |
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) */ |