From 37d7c1ccf17d7e32d084c88f510f7639514a7676 Mon Sep 17 00:00:00 2001 From: Miguel Sofer Date: Fri, 22 Oct 2004 12:29:53 +0000 Subject: * 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. --- ChangeLog | 7 +++++++ generic/tclVar.c | 5 +---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1762e6e..d46d502 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-10-22 Miguel Sofer + + * 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 * 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) { -- cgit v0.12