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 | |
parent | a2781456a8073fc4a0496514c9a1d9c9a5764c80 (diff) | |
download | tcl-17a9db51fa7438b3fd272d00b9c5372dd0132922.zip tcl-17a9db51fa7438b3fd272d00b9c5372dd0132922.tar.gz tcl-17a9db51fa7438b3fd272d00b9c5372dd0132922.tar.bz2 |
* generic/tclBasic.c (TclObjInvoke): Plug memory leak. [Bug 1180368]
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | generic/tclBasic.c | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2005-04-10 Don Porter <dgp@users.sourceforge.net> + + * generic/tclBasic.c (TclObjInvoke): Plug memory leak. [Bug 1180368] + 2005-04-09 Miguel Sofer <msofer@users.sf.net> * generic/tclExecute.c: fix possible leak of expansion Tcl_Objs 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; |