summaryrefslogtreecommitdiffstats
path: root/generic/tclInterp.c
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 /generic/tclInterp.c
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.
Diffstat (limited to 'generic/tclInterp.c')
-rw-r--r--generic/tclInterp.c3
1 files changed, 2 insertions, 1 deletions
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]);
}