summaryrefslogtreecommitdiffstats
path: root/generic/tclProc.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2006-10-16 20:36:19 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2006-10-16 20:36:19 (GMT)
commit16c6dd8402ad04f625c0546f3a1715baa928da5f (patch)
tree606045ea030bce565c6297c5f8af4d7c880992b4 /generic/tclProc.c
parent500354bed1dd1c346a7638475fdd9a3c4be70184 (diff)
downloadtcl-16c6dd8402ad04f625c0546f3a1715baa928da5f.zip
tcl-16c6dd8402ad04f625c0546f3a1715baa928da5f.tar.gz
tcl-16c6dd8402ad04f625c0546f3a1715baa928da5f.tar.bz2
* tclProc.c (SetLambdaFromAny):
* tests/apply.test (9.1-9.2): plugged intrep leak [Bug 1578454], found by mjanssen.
Diffstat (limited to 'generic/tclProc.c')
-rw-r--r--generic/tclProc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tclProc.c b/generic/tclProc.c
index 035de96..d8a959e 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.92 2006/09/30 17:56:47 msofer Exp $
+ * RCS: @(#) $Id: tclProc.c,v 1.93 2006/10/16 20:36:19 msofer Exp $
*/
#include "tclInt.h"
@@ -2036,7 +2036,11 @@ SetLambdaFromAny(
Tcl_GetString(objPtr), NULL);
return TCL_ERROR;
}
- procPtr->refCount++;
+
+ /* CAREFUL: TclCreateProc returns refCount==1! [Bug 1578454]
+ * procPtr->refCount = 1;
+ */
+
procPtr->cmdPtr = NULL;
/*