summaryrefslogtreecommitdiffstats
path: root/generic/tclMain.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2010-09-23 17:59:38 (GMT)
committerdgp <dgp@users.sourceforge.net>2010-09-23 17:59:38 (GMT)
commitad8915efaf90d9299a50f1e2eabb53be2ea2fc70 (patch)
tree548ce39ebe7fe493b3ec37aabd520e0d29a6ce09 /generic/tclMain.c
parent8f13382de53a2267263119d3440533290cc32487 (diff)
downloadtcl-ad8915efaf90d9299a50f1e2eabb53be2ea2fc70.zip
tcl-ad8915efaf90d9299a50f1e2eabb53be2ea2fc70.tar.gz
tcl-ad8915efaf90d9299a50f1e2eabb53be2ea2fc70.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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclMain.c b/generic/tclMain.c
index 11e6ccb..99fa603 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.44 2007/12/13 15:23:19 dgp Exp $
+ * RCS: @(#) $Id: tclMain.c,v 1.44.2.1 2010/09/23 17:59:39 dgp Exp $
*/
#include "tclInt.h"
@@ -454,6 +454,7 @@ Tcl_Main(
Tcl_WriteObj(errChannel, valuePtr);
}
Tcl_WriteChars(errChannel, "\n", 1);
+ Tcl_DecrRefCount(options);
}
exitCode = 1;
}