diff options
| author | Miguel Sofer <miguel.sofer@gmail.com> | 2005-11-04 22:38:38 (GMT) |
|---|---|---|
| committer | Miguel Sofer <miguel.sofer@gmail.com> | 2005-11-04 22:38:38 (GMT) |
| commit | 744921331e24b75cebe8d7a6cf67f52b1d85a8de (patch) | |
| tree | adcafce2861cb0011abba51ff7721b2c425f5bad /generic/tclTest.c | |
| parent | 3e986e2782dd42b6b919e86d60ba09ce1abc906f (diff) | |
| download | tcl-744921331e24b75cebe8d7a6cf67f52b1d85a8de.zip tcl-744921331e24b75cebe8d7a6cf67f52b1d85a8de.tar.gz tcl-744921331e24b75cebe8d7a6cf67f52b1d85a8de.tar.bz2 | |
* generic/tclBinary.c:
* generic/tclCmdAH.c:
* generic/tclCmdIL.c:
* generic/tclCmdMZ.c:
* generic/tclDictObj.c:
* generic/tclExecute.c:
* generic/tclIOCmd.c:
* generic/tclLink.c:
* generic/tclTest.c:
* generic/tclVar.c: fix for [Bug 1334947]. The functions
TclPtrSetVar, Tcl_ObjSetVar2 and Tcl_SetVar2Ex now always consume
the newValuePtr argument - i.e., they will free a 0-refCount
object if they failed to set the variable. Fixed all callers in
the core.
Diffstat (limited to 'generic/tclTest.c')
| -rw-r--r-- | generic/tclTest.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c index d4b60a3..dc5269c 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclTest.c,v 1.98 2005/11/02 15:59:48 dkf Exp $ + * RCS: @(#) $Id: tclTest.c,v 1.99 2005/11/04 22:38:38 msofer Exp $ */ #define TCL_TEST @@ -3843,7 +3843,6 @@ TestregexpObjCmd(dummy, interp, objc, objv) } valuePtr = Tcl_ObjSetVar2(interp, varPtr, NULL, newPtr, 0); if (valuePtr == NULL) { - Tcl_DecrRefCount(newPtr); Tcl_AppendResult(interp, "couldn't set variable \"", Tcl_GetString(varPtr), "\"", NULL); return TCL_ERROR; |
