summaryrefslogtreecommitdiffstats
path: root/generic/tclCkalloc.c
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2001-03-31 07:57:31 (GMT)
committerhobbs <hobbs@noemail.net>2001-03-31 07:57:31 (GMT)
commitf8366df3147ec9c6b61c82cb47eef17ff91e22e5 (patch)
treecf93ab95d068a0d81efb65a15ce50afd65167b20 /generic/tclCkalloc.c
parent752806d2ed860173994e468bb8382d2b6980485c (diff)
downloadtcl-f8366df3147ec9c6b61c82cb47eef17ff91e22e5.zip
tcl-f8366df3147ec9c6b61c82cb47eef17ff91e22e5.tar.gz
tcl-f8366df3147ec9c6b61c82cb47eef17ff91e22e5.tar.bz2
* generic/tclCkalloc.c (TclFinalizeMemorySubsystem): set curTagPtr
to NULL to allow for reuse. * generic/tclEvent.c (Tcl_Finalize): moved the tsdPtr initialization inside the subsystemsInitialized check to prevent it potentially getting called twice during finalization. (wu) [Patch #403532, Bug #219391] FossilOrigin-Name: 243ce734c73439a32a175f08e26aab82a6e3dea9
Diffstat (limited to 'generic/tclCkalloc.c')
-rw-r--r--generic/tclCkalloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclCkalloc.c b/generic/tclCkalloc.c
index 4293a93..68e6336 100644
--- a/generic/tclCkalloc.c
+++ b/generic/tclCkalloc.c
@@ -13,7 +13,7 @@
*
* This code contributed by Karl Lehenbauer and Mark Diekhans
*
- * RCS: @(#) $Id: tclCkalloc.c,v 1.10 2000/12/08 04:22:43 ericm Exp $
+ * RCS: @(#) $Id: tclCkalloc.c,v 1.11 2001/03/31 07:57:31 hobbs Exp $
*/
#include "tclInt.h"
@@ -1219,6 +1219,7 @@ TclFinalizeMemorySubsystem()
}
if (curTagPtr != NULL) {
TclpFree((char *) curTagPtr);
+ curTagPtr = NULL;
}
allocHead = NULL;
Tcl_MutexUnlock(ckallocMutexPtr);