summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvasiljevic <zv@archiware.com>2005-04-16 08:00:17 (GMT)
committervasiljevic <zv@archiware.com>2005-04-16 08:00:17 (GMT)
commit49ef966c3dfe153816d01fe5022971cbbc10c82e (patch)
treea6814bc23072ec46c217e4223cb19fe364b59ea4
parentc6d40654e2d26347b03f781f94c615c5d5471c34 (diff)
downloadtcl-49ef966c3dfe153816d01fe5022971cbbc10c82e.zip
tcl-49ef966c3dfe153816d01fe5022971cbbc10c82e.tar.gz
tcl-49ef966c3dfe153816d01fe5022971cbbc10c82e.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
-rwxr-xr-xgeneric/tclThreadAlloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclThreadAlloc.c b/generic/tclThreadAlloc.c
index 553bd4f..0e8c087 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.14 2004/07/21 01:45:44 hobbs Exp $
+ * RCS: @(#) $Id: tclThreadAlloc.c,v 1.15 2005/04/16 08:00:17 vasiljevic Exp $
*/
#include "tclInt.h"
@@ -988,6 +988,8 @@ TclFinalizeThreadAlloc()
TclpFreeAllocMutex(listLockPtr);
listLockPtr = NULL;
+
+ TclpFreeAllocCache(NULL);
}
#else