summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdMZ.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2001-11-21 17:17:17 (GMT)
committerdgp <dgp@users.sourceforge.net>2001-11-21 17:17:17 (GMT)
commitce8d99c1e94271f0d1f544785308d77954153eeb (patch)
treed77fa27729e178cf36c9fbf4c5d395f519ca552d /generic/tclCmdMZ.c
parentff6d644685d5d3413b6ff4287c80cfd30f2693de (diff)
downloadtcl-ce8d99c1e94271f0d1f544785308d77954153eeb.zip
tcl-ce8d99c1e94271f0d1f544785308d77954153eeb.tar.gz
tcl-ce8d99c1e94271f0d1f544785308d77954153eeb.tar.bz2
* generic/tclBasic.c (Tcl_DeleteCommandFromToken,CallCommandTraces):
* generic/tclCmdMZ>c (Tcl_UntraceCommand): Added Tcl_Preserve and Tcl_Release calls to prevent deletion of CommandTrace structures until all callers are done using them, preventing memory corruption. [Bug 453805]
Diffstat (limited to 'generic/tclCmdMZ.c')
-rw-r--r--generic/tclCmdMZ.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c
index 34af105..22634d5 100644
--- a/generic/tclCmdMZ.c
+++ b/generic/tclCmdMZ.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCmdMZ.c,v 1.50 2001/11/21 02:36:20 hobbs Exp $
+ * RCS: @(#) $Id: tclCmdMZ.c,v 1.51 2001/11/21 17:17:17 dgp Exp $
*/
#include "tclInt.h"
@@ -3472,7 +3472,7 @@ Tcl_UntraceCommand(interp, cmdName, flags, proc, clientData)
} else {
prevPtr->nextPtr = tracePtr->nextPtr;
}
- ckfree((char *) tracePtr);
+ Tcl_EventuallyFree((ClientData) tracePtr, TCL_DYNAMIC);
}
/*