From f8216e07a1d1364967afd2f56628b355401e46cb Mon Sep 17 00:00:00 2001 From: Miguel Sofer Date: Tue, 18 Feb 2003 02:37:50 +0000 Subject: * generic/tclBasic.c (TclRenameCommand): fixing error in previous commit. --- ChangeLog | 7 ++++++- generic/tclBasic.c | 3 +-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8a9a233..cc8dd2d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-02-17 Miguel Sofer + + * generic/tclBasic.c (TclRenameCommand): fixing error in previous + commit. + 2003-02-17 Jeff Hobbs * generic/tclExecute.c (TclExecuteByteCode INST_STR_MATCH): @@ -16,7 +21,7 @@ * generic/tclBasic.c (TclRenameCommand): 'oldFullName' object was not being freed on all function exits, causing a memory leak [Bug 684756] - + 2003-02-17 Mo DeJong * generic/tclIO.c (Tcl_GetsObj): Minor change diff --git a/generic/tclBasic.c b/generic/tclBasic.c index cd42855..cf9df21 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.74 2003/02/18 02:22:33 msofer Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.75 2003/02/18 02:37:52 msofer Exp $ */ #include "tclInt.h" @@ -1965,7 +1965,6 @@ TclRenameCommand(interp, oldName, newName) Tcl_AppendStringsToObj(Tcl_GetObjResult(interp), "can't rename to \"", newName, "\": bad command name", (char *) NULL); - Tcl_DecrRefCount( oldFullName ); result = TCL_ERROR; goto done; } -- cgit v0.12