diff options
author | dgp <dgp@users.sourceforge.net> | 2005-04-10 23:07:33 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2005-04-10 23:07:33 (GMT) |
commit | 17a9db51fa7438b3fd272d00b9c5372dd0132922 (patch) | |
tree | 8e25a6f6ca4827d117a218b0077156ecd3a86a0a /generic | |
parent | a2781456a8073fc4a0496514c9a1d9c9a5764c80 (diff) | |
download | tcl-17a9db51fa7438b3fd272d00b9c5372dd0132922.zip tcl-17a9db51fa7438b3fd272d00b9c5372dd0132922.tar.gz tcl-17a9db51fa7438b3fd272d00b9c5372dd0132922.tar.bz2 |
* generic/tclBasic.c (TclObjInvoke): Plug memory leak. [Bug 1180368]
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclBasic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index bcb8967..be75a52 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclBasic.c,v 1.143 2005/04/02 02:08:29 msofer Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.144 2005/04/10 23:07:36 dgp Exp $ */ #include "tclInt.h" @@ -4309,6 +4309,7 @@ TclObjInvoke(interp, objc, objv, flags) CONST char* cmdString = Tcl_GetStringFromObj(command, &length); Tcl_LogCommandInfo(interp, cmdString, cmdString, length); + Tcl_DecrRefCount(command); iPtr->flags &= ~ERR_ALREADY_LOGGED; } return result; |