diff options
| author | Miguel Sofer <miguel.sofer@gmail.com> | 2005-04-16 19:17:30 (GMT) |
|---|---|---|
| committer | Miguel Sofer <miguel.sofer@gmail.com> | 2005-04-16 19:17:30 (GMT) |
| commit | 8fac86f5fee0606064e349813764fa598171ed3b (patch) | |
| tree | a76022b5119dfcc6f4ec5914b6bb38b7259df644 | |
| parent | 611a4deb6d7b804bd9cd22fa462dfa2812c506ad (diff) | |
| download | tcl-8fac86f5fee0606064e349813764fa598171ed3b.zip tcl-8fac86f5fee0606064e349813764fa598171ed3b.tar.gz tcl-8fac86f5fee0606064e349813764fa598171ed3b.tar.bz2 | |
* generic/Var.c (Tcl_ArrayObjCmd - ARRAY_NAMES): fix Tcl_Obj leak
[Bug 1084111]
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | generic/tclVar.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -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: { |
