diff options
author | dgp <dgp@users.sourceforge.net> | 2007-08-27 15:12:38 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-08-27 15:12:38 (GMT) |
commit | d807bb087b7c5fdec280d68120900066bb8e05ae (patch) | |
tree | 705afa5dff7582b5ecb3c89460a5e5a99c490525 /generic/tclExecute.c | |
parent | d679f070dcc31cea4f7fa392c47a081d7d926476 (diff) | |
download | tcl-d807bb087b7c5fdec280d68120900066bb8e05ae.zip tcl-d807bb087b7c5fdec280d68120900066bb8e05ae.tar.gz tcl-d807bb087b7c5fdec280d68120900066bb8e05ae.tar.bz2 |
* generic/tclCompile.c: Move the deallocation of local LiteralTable
* generic/tclCompExpr.c: entries into TclFreeCompileEnv().
* generic/tclExecute.c: Update callers.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r-- | generic/tclExecute.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index 625a7a0..3156450 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -12,7 +12,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.324 2007/08/27 06:46:32 das Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.325 2007/08/27 15:12:38 dgp Exp $ */ #include "tclInt.h" @@ -1111,7 +1111,6 @@ Tcl_ExprObj( Interp *iPtr = (Interp *) interp; CompileEnv compEnv; /* Compilation environment structure allocated * in frame. */ - LiteralTable *localTablePtr = &(compEnv.localLitTable); register ByteCode *codePtr = NULL; /* Tcl Internal type of bytecode. Initialized * to avoid compiler warning. */ @@ -1186,15 +1185,6 @@ Tcl_ExprObj( TclInitCompileEnv(interp, &compEnv, string, length, NULL, 0); result = TclCompileExpr(interp, string, length, &compEnv); - /* - * Free the compilation environment's literal table bucket array if it - * was dynamically allocated. - */ - - if (localTablePtr->buckets != localTablePtr->staticBuckets) { - ckfree((char *) localTablePtr->buckets); - } - if (result != TCL_OK) { /* * Compilation errors. Free storage allocated for compilation. |