summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2005-04-16 19:17:30 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2005-04-16 19:17:30 (GMT)
commit5569cd7f6bc15d75f4b42108f06113c0e198a0e2 (patch)
treea76022b5119dfcc6f4ec5914b6bb38b7259df644
parentdcc058d3fffbd8ad09d0ded3cb607194196d0ef4 (diff)
downloadtcl-5569cd7f6bc15d75f4b42108f06113c0e198a0e2.zip
tcl-5569cd7f6bc15d75f4b42108f06113c0e198a0e2.tar.gz
tcl-5569cd7f6bc15d75f4b42108f06113c0e198a0e2.tar.bz2
* generic/Var.c (Tcl_ArrayObjCmd - ARRAY_NAMES): fix Tcl_Obj leak
[Bug 1084111]
-rw-r--r--ChangeLog5
-rw-r--r--generic/tclVar.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 431dbd7..8d69ff5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-16 Miguel Sofer <msofer@users.sf.net>
+
+ * generic/Var.c (Tcl_ArrayObjCmd - ARRAY_NAMES): fix Tcl_Obj leak
+ [Bug 1084111]
+
2005-04-16 Zoran Vasiljevic <vasiljevic@users.sf.net>
* generic/tclIOUtil.c: force clenaup of the interp result
diff --git a/generic/tclVar.c b/generic/tclVar.c
index 7944ea6..0b5497f 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclVar.c,v 1.103 2005/04/03 00:20:08 msofer Exp $
+ * RCS: @(#) $Id: tclVar.c,v 1.104 2005/04/16 19:17:34 msofer Exp $
*/
#include "tclInt.h"
@@ -2917,8 +2917,8 @@ Tcl_ArrayObjCmd(dummy, interp, objc, objv)
Tcl_DecrRefCount(namePtr); /* free unneeded name obj */
return result;
}
- Tcl_SetObjResult(interp, resultPtr);
}
+ Tcl_SetObjResult(interp, resultPtr);
break;
}
case ARRAY_NEXTELEMENT: {