summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2010-10-13 16:41:26 (GMT)
committerdgp <dgp@users.sourceforge.net>2010-10-13 16:41:26 (GMT)
commit40fe734e338c7f76d3d8e58dc9ba49618ed78922 (patch)
treebe4d8db65e438b29fae676a84c4ccf481ad29135 /generic/tclExecute.c
parent00c058d1b2b75eebb1fe0e6e4f653eb3122443df (diff)
downloadtcl-40fe734e338c7f76d3d8e58dc9ba49618ed78922.zip
tcl-40fe734e338c7f76d3d8e58dc9ba49618ed78922.tar.gz
tcl-40fe734e338c7f76d3d8e58dc9ba49618ed78922.tar.bz2
* generic/tclCompile.c: Alternative fix for [Bugs 467523,983660] where
* generic/tclExecute.c: sharing of empty scripts is allowed again.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 649b100..c7f3690 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.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: tclExecute.c,v 1.505 2010/10/09 15:56:35 msofer Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.506 2010/10/13 16:41:27 dgp Exp $
*/
#include "tclInt.h"
@@ -1525,12 +1525,12 @@ FreeExprCodeInternalRep(
{
ByteCode *codePtr = (ByteCode *) objPtr->internalRep.otherValuePtr;
+ objPtr->typePtr = NULL;
+ objPtr->internalRep.otherValuePtr = NULL;
codePtr->refCount--;
if (codePtr->refCount <= 0) {
TclCleanupByteCode(codePtr);
}
- objPtr->typePtr = NULL;
- objPtr->internalRep.otherValuePtr = NULL;
}
/*