diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2007-03-29 19:22:06 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2007-03-29 19:22:06 (GMT) |
commit | 9a08b056c6086eb886da58e32ce8efae27b13b25 (patch) | |
tree | aaebbb983b9e940b00166ec9717ed8a806e71017 /generic | |
parent | f0dcf496f096fd97761a4392ff77c13f9eb49707 (diff) | |
download | tcl-9a08b056c6086eb886da58e32ce8efae27b13b25.zip tcl-9a08b056c6086eb886da58e32ce8efae27b13b25.tar.gz tcl-9a08b056c6086eb886da58e32ce8efae27b13b25.tar.bz2 |
* generic/tclProc.c (Tcl_ApplyObjCmd):
* tests/apply.test (9.3): Fixed Tcl_Obj leak on error return; an
unneeded ref to lambdaPtr was being set and not released on an
error return path.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclProc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/generic/tclProc.c b/generic/tclProc.c index 92e81af..9d2c2bb 100644 --- a/generic/tclProc.c +++ b/generic/tclProc.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclProc.c,v 1.108 2006/11/28 22:20:29 andreas_kupries Exp $ + * RCS: @(#) $Id: tclProc.c,v 1.109 2007/03/29 19:22:07 msofer Exp $ */ #include "tclInt.h" @@ -2383,7 +2383,6 @@ Tcl_ApplyObjCmd( */ cmd.clientData = (ClientData) lambdaPtr; - Tcl_IncrRefCount (lambdaPtr); /* * Find the namespace where this lambda should run, and push a call frame @@ -2424,9 +2423,6 @@ Tcl_ApplyObjCmd( iPtr->ensembleRewrite.numInsertedObjs = 0; } - /* TIP #280 Undo the reference held inside of 'cmd, see HACK above. */ - Tcl_DecrRefCount (lambdaPtr); - return result; } |