diff options
author | dgp <dgp@users.sourceforge.net> | 2010-09-23 18:08:35 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2010-09-23 18:08:35 (GMT) |
commit | 8691a6254e1afce0248c4ff5807236e23e1167a0 (patch) | |
tree | 70188bada5349cb8693a728792bcef992ccb9ac5 /generic/tclMain.c | |
parent | 75b8709bd8ea0850f781b499cd3642c3c96df4e4 (diff) | |
download | tcl-8691a6254e1afce0248c4ff5807236e23e1167a0.zip tcl-8691a6254e1afce0248c4ff5807236e23e1167a0.tar.gz tcl-8691a6254e1afce0248c4ff5807236e23e1167a0.tar.bz2 |
* generic/tclCmdAH.c: Fix cases where value returned by
* generic/tclEvent.c: Tcl_GetReturnOptions() was leaked.
* generic/tclMain.c: Thanks to Jeff Hobbs for discovery of the
anti-pattern to seek and destroy.
Diffstat (limited to 'generic/tclMain.c')
-rw-r--r-- | generic/tclMain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclMain.c b/generic/tclMain.c index 5d4c6f9..b274f41 100644 --- a/generic/tclMain.c +++ b/generic/tclMain.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclMain.c,v 1.50 2010/04/30 07:07:06 nijtmans Exp $ + * RCS: @(#) $Id: tclMain.c,v 1.51 2010/09/23 18:08:35 dgp Exp $ */ #include "tclInt.h" @@ -368,6 +368,7 @@ Tcl_Main( Tcl_WriteObj(errChannel, valuePtr); } Tcl_WriteChars(errChannel, "\n", 1); + Tcl_DecrRefCount(options); } exitCode = 1; } |