diff options
author | mig <mig@noemail.net> | 2012-12-13 13:37:19 (GMT) |
---|---|---|
committer | mig <mig@noemail.net> | 2012-12-13 13:37:19 (GMT) |
commit | f7b2614eed5cd1f853f9e4c92feac17ae9f336c2 (patch) | |
tree | 95c002e07c7e884c18be2eddb392ecb6023a2b63 /generic/tclCmdAH.c | |
parent | d6d7f2734788b7d5b1a4f278ffcc2d05ce495a3a (diff) | |
download | tcl-f7b2614eed5cd1f853f9e4c92feac17ae9f336c2.zip tcl-f7b2614eed5cd1f853f9e4c92feac17ae9f336c2.tar.gz tcl-f7b2614eed5cd1f853f9e4c92feac17ae9f336c2.tar.bz2 |
Fix for [Bug 3595576], found by andrewsh
FossilOrigin-Name: 5e873e324a9382a3c03fe4253feaaa4f6b4c924c
Diffstat (limited to 'generic/tclCmdAH.c')
-rw-r--r-- | generic/tclCmdAH.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index 14951e4..133a61b 100644 --- a/generic/tclCmdAH.c +++ b/generic/tclCmdAH.c @@ -361,7 +361,8 @@ CatchObjCmdCallback( if (NULL == Tcl_ObjSetVar2(interp, optionVarNamePtr, NULL, options, TCL_LEAVE_ERR_MSG)) { - Tcl_DecrRefCount(options); + /* Do not decrRefCount 'options', it was already done by + * Tcl_ObjSetVar2 */ return TCL_ERROR; } } |