diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | generic/tclVar.c | 5 |
2 files changed, 8 insertions, 4 deletions
@@ -1,3 +1,10 @@ +2004-10-22 Miguel Sofer <msofer@users.sf.net> + + * generic/tclVar.c: fixed bug in commit of 2004-07-23, which was + causing a leak of Proc structures and failure of compile-12.1. Two + lines were 'zombies' from the previous way localVarNames + worked. Credit dgp for finding this. + 2004-10-21 Don Porter <dgp@users.sourceforge.net> * generic/tclInt.h (Interp): diff --git a/generic/tclVar.c b/generic/tclVar.c index a51d7dd..e8e645b 100644 --- a/generic/tclVar.c +++ b/generic/tclVar.c @@ -15,7 +15,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclVar.c,v 1.95 2004/10/06 15:59:26 dgp Exp $ + * RCS: @(#) $Id: tclVar.c,v 1.96 2004/10/22 12:29:53 msofer Exp $ */ #ifdef STDC_HEADERS @@ -548,10 +548,7 @@ TclObjLookupVar(interp, part1Ptr, part2, flags, msg, createPart1, createPart2, * An indexed local variable. */ - Proc *procPtr = ((Interp *) interp)->varFramePtr->procPtr; - part1Ptr->typePtr = &tclLocalVarNameType; - procPtr->refCount++; part1Ptr->internalRep.longValue = (long) index; #if ENABLE_NS_VARNAME_CACHING } else if (index > -3) { |