summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2004-10-22 12:29:53 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2004-10-22 12:29:53 (GMT)
commit37d7c1ccf17d7e32d084c88f510f7639514a7676 (patch)
treeb18e008b7eccc7aecf23002909212da81e5891e8 /generic
parent055d04eb7c2503a7531fe07aa46252b2476e1db4 (diff)
downloadtcl-37d7c1ccf17d7e32d084c88f510f7639514a7676.zip
tcl-37d7c1ccf17d7e32d084c88f510f7639514a7676.tar.gz
tcl-37d7c1ccf17d7e32d084c88f510f7639514a7676.tar.bz2
* 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.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclVar.c5
1 files changed, 1 insertions, 4 deletions
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) {