summaryrefslogtreecommitdiffstats
path: root/generic/tclCkalloc.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-03-31 07:57:31 (GMT)
committerhobbs <hobbs>2001-03-31 07:57:31 (GMT)
commitfc917e03f0febbf3d08e3490a28a9b99cd14c8e4 (patch)
treecf93ab95d068a0d81efb65a15ce50afd65167b20 /generic/tclCkalloc.c
parentbac1f905835bd292a9b98b9f085e389ffd0437e0 (diff)
downloadtcl-fc917e03f0febbf3d08e3490a28a9b99cd14c8e4.zip
tcl-fc917e03f0febbf3d08e3490a28a9b99cd14c8e4.tar.gz
tcl-fc917e03f0febbf3d08e3490a28a9b99cd14c8e4.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]
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);