summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2009-11-10 20:19:02 (GMT)
committerdgp <dgp@users.sourceforge.net>2009-11-10 20:19:02 (GMT)
commitfe29a271ae36303b08f0638264a0dca9bbaa114d (patch)
tree6ac497f4928f32c677b0c6501ef314a0ef23f90d /generic/tclBasic.c
parent1a3b2bdbd2addbd509c6267b501b9292c02d6176 (diff)
downloadtcl-fe29a271ae36303b08f0638264a0dca9bbaa114d.zip
tcl-fe29a271ae36303b08f0638264a0dca9bbaa114d.tar.gz
tcl-fe29a271ae36303b08f0638264a0dca9bbaa114d.tar.bz2
* generic/tclBasic.c: Plug another leak in TCL_EVAL_DIRECT
evaluation.
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 63548ea..50f1a3d 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -14,7 +14,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.295.2.15 2009/11/09 22:36:39 dgp Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.295.2.16 2009/11/10 20:19:02 dgp Exp $
*/
#include "tclInt.h"
@@ -5236,17 +5236,17 @@ TclEvalObjEx(
Tcl_DecrRefCount(ctxPtr->data.eval.path);
}
TclStackFree(interp, ctxPtr);
+ }
- /*
- * Now release the lock on the continuation line information, if
- * any, and restore the caller's settings.
- */
+ /*
+ * Now release the lock on the continuation line information, if
+ * any, and restore the caller's settings.
+ */
- if (iPtr->scriptCLLocPtr) {
- Tcl_Release (iPtr->scriptCLLocPtr);
- }
- iPtr->scriptCLLocPtr = saveCLLocPtr;
+ if (iPtr->scriptCLLocPtr) {
+ Tcl_Release (iPtr->scriptCLLocPtr);
}
+ iPtr->scriptCLLocPtr = saveCLLocPtr;
} else {
/*
* Let the compiler/engine subsystem do the evaluation.