summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2002-09-03 16:31:30 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2002-09-03 16:31:30 (GMT)
commit6af3ee59635ce3a2101b7394f3e74773d6bb62d4 (patch)
tree15a12d70eed9bf6d6ea13ec16e7f7b4e3d332cf4
parent71926e8364fdad1cf759d81407897b581b007aaa (diff)
downloadtcl-6af3ee59635ce3a2101b7394f3e74773d6bb62d4.zip
tcl-6af3ee59635ce3a2101b7394f3e74773d6bb62d4.tar.gz
tcl-6af3ee59635ce3a2101b7394f3e74773d6bb62d4.tar.bz2
* generic/tclInterp.c (AliasCreate): a Tcl_Obj was leaked on error
return from TclPreventAliasLoop.
-rw-r--r--ChangeLog5
-rw-r--r--generic/tclInterp.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 36b9836..0410f53 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-03 Miguel Sofer <msofer@users.sourceforge.net>
+
+ * generic/tclInterp.c (AliasCreate): a Tcl_Obj was leaked on error
+ return from TclPreventAliasLoop.
+
2002-09-03 Daniel Steffen <das@users.sourceforge.net>
* macosx/Tcl.pbproj/project.pbxproj: Bumped version number to
diff --git a/generic/tclInterp.c b/generic/tclInterp.c
index cb3dcde..cd61b06 100644
--- a/generic/tclInterp.c
+++ b/generic/tclInterp.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclInterp.c,v 1.17 2002/09/02 20:10:03 hobbs Exp $
+ * RCS: @(#) $Id: tclInterp.c,v 1.18 2002/09/03 16:31:32 msofer Exp $
*/
#include "tclInt.h"
@@ -1191,6 +1191,7 @@ AliasCreate(interp, slaveInterp, masterInterp, namePtr, targetNamePtr,
Command *cmdPtr;
Tcl_DecrRefCount(aliasPtr->namePtr);
+ Tcl_DecrRefCount(targetNamePtr);
for (i = 0; i < objc; i++) {
Tcl_DecrRefCount(objv[i]);
}