summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2002-08-22 15:57:53 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2002-08-22 15:57:53 (GMT)
commit0e4ac702223faf7f961266d9cc0b49495be28156 (patch)
tree8f3e085b616a3732f26bc5311b82802a219244c3 /generic/tclBasic.c
parent98eb85234663ad8fcfe10d58847a8f79049fe77e (diff)
downloadtcl-0e4ac702223faf7f961266d9cc0b49495be28156.zip
tcl-0e4ac702223faf7f961266d9cc0b49495be28156.tar.gz
tcl-0e4ac702223faf7f961266d9cc0b49495be28156.tar.bz2
* generic/tclBasic.c:
* generic/tclCmdMZ.c: fix for freed memory r/w in delete traces [Bug 589863], patch by Hemang Lavana.
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index b1da3ad..379d290 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.68 2002/08/05 03:24:40 dgp Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.69 2002/08/22 15:57:53 msofer Exp $
*/
#include "tclInt.h"
@@ -5023,8 +5023,7 @@ Tcl_DeleteTrace(interp, trace)
/* Delete the trace object */
- ckfree( (char*) tracePtr );
-
+ Tcl_EventuallyFree( (char*) tracePtr, TCL_DYNAMIC);
}
/*