summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2008-01-16 19:44:11 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2008-01-16 19:44:11 (GMT)
commit649a6115420f5c28c50feee55a7e0e441b22188d (patch)
tree87fb0a03684559d93d38d2a49416a4bbd053e9a0 /generic/tclExecute.c
parent90cf37f28b485d5cfdf799b2ead8bf7e1d57b479 (diff)
downloadtcl-649a6115420f5c28c50feee55a7e0e441b22188d.zip
tcl-649a6115420f5c28c50feee55a7e0e441b22188d.tar.gz
tcl-649a6115420f5c28c50feee55a7e0e441b22188d.tar.bz2
* generic/tclCompExpr.c: Fix literal leak in exprs [Bug 1869989]
* generic/tclExecute.c: (dgp)
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 8793312..472ed7f 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.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: tclExecute.c,v 1.358 2007/12/17 15:28:27 msofer Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.359 2008/01/16 19:44:13 msofer Exp $
*/
#include "tclInt.h"
@@ -1228,6 +1228,13 @@ Tcl_ExprObj(
const char *string = TclGetStringFromObj(objPtr, &length);
TclInitCompileEnv(interp, &compEnv, string, length, NULL, 0);
+
+ /*
+ * TODO: Consider creating and calling an alternative routine
+ * that will compile bytecode for one-off expressions like this
+ * one with optimize==0, for improved efficiency.
+ */
+
TclCompileExpr(interp, string, length, &compEnv);
/*