summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdAH.c
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2010-09-23 17:59:37 (GMT)
committerdgp <dgp@noemail.net>2010-09-23 17:59:37 (GMT)
commit832d4c5d33860e50981221810dc0f7a87c72e45c (patch)
tree548ce39ebe7fe493b3ec37aabd520e0d29a6ce09 /generic/tclCmdAH.c
parentc9a038a07f48cfbcfed551a543410490ecbac0dd (diff)
downloadtcl-832d4c5d33860e50981221810dc0f7a87c72e45c.zip
tcl-832d4c5d33860e50981221810dc0f7a87c72e45c.tar.gz
tcl-832d4c5d33860e50981221810dc0f7a87c72e45c.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. FossilOrigin-Name: 5139ef090c48688ff55eca78c6a58c0b920fe4e4
Diffstat (limited to 'generic/tclCmdAH.c')
-rw-r--r--generic/tclCmdAH.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c
index 5b7cd34..4ec8dda 100644
--- a/generic/tclCmdAH.c
+++ b/generic/tclCmdAH.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: tclCmdAH.c,v 1.93.2.2 2009/12/28 13:53:40 dkf Exp $
+ * RCS: @(#) $Id: tclCmdAH.c,v 1.93.2.3 2010/09/23 17:59:38 dgp Exp $
*/
#include "tclInt.h"
@@ -275,6 +275,7 @@ Tcl_CatchObjCmd(
Tcl_Obj *options = Tcl_GetReturnOptions(interp, result);
if (NULL == Tcl_ObjSetVar2(interp, optionVarNamePtr, NULL,
options, 0)) {
+ Tcl_DecrRefCount(options);
Tcl_ResetResult(interp);
Tcl_AppendResult(interp,
"couldn't save return options in variable", NULL);