summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2003-10-03 20:31:23 (GMT)
committerdgp <dgp@noemail.net>2003-10-03 20:31:23 (GMT)
commit94407eb454615b54a7585eb47bf9f0b88c7ca8dc (patch)
tree3702989446df90cec46044f428f4fa88ff701681 /generic/tclBasic.c
parent5f3d4f86060e3beaffdbe57df79b219a56a78d43 (diff)
downloadtcl-94407eb454615b54a7585eb47bf9f0b88c7ca8dc.zip
tcl-94407eb454615b54a7585eb47bf9f0b88c7ca8dc.tar.gz
tcl-94407eb454615b54a7585eb47bf9f0b88c7ca8dc.tar.bz2
* generic/tclBasic.c: Fixed error in ref count management of command
* generic/tclCmdMZ.c: and execution traces that caused access to freed memory in trace-32.1. [Bug 811483]. FossilOrigin-Name: d827d182f44e9b2b0f98c454da8b033825048ddd
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 50f80d4..dc4fe90 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.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: tclBasic.c,v 1.75.2.6 2003/09/29 22:03:44 dgp Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.75.2.7 2003/10/03 20:31:23 dgp Exp $
*/
#include "tclInt.h"
@@ -2550,11 +2550,9 @@ CallCommandTraces(iPtr, cmdPtr, oldName, newName, flags)
* must get the name from cmdPtr */
CONST char *newName; /* Command's new name, or NULL if
* the command is not being renamed */
- int flags; /* Flags passed to trace procedures:
- * indicates what's happening to command,
- * plus other stuff like TCL_GLOBAL_ONLY,
- * TCL_NAMESPACE_ONLY, and
- * TCL_INTERP_DESTROYED. */
+ int flags; /* Flags indicating the type of traces
+ * to trigger, either TCL_TRACE_DELETE
+ * or TCL_TRACE_RENAME. */
{
register CommandTrace *tracePtr;
ActiveCommandTrace active;