Artifacts Associated With Ticket d052d2a1b01ba2c8
Ticket change [abd74bb92d] (rid 203160) by chrstphrchvz on 2022-08-20 14:21:34:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
If `TestsetbytearraylengthObjCmd()` is called with a shared value and `Tcl_SetByteArrayLength()` returns `NULL`, then the duplicated value returned by `Tcl_DuplicateObj()` should be freed, otherwise it will be leaked: <pre> --- generic/tclTest.c.orig +++ generic/tclTest.c @@ -5130,6 +5130,9 @@ obj = objv[1]; } if (NULL == Tcl_SetByteArrayLength(obj, n)) { <span style="color:green">+ if (Tcl_IsShared(objv[1])) { + Tcl_DecrRefCount(obj); + }</span> Tcl_SetResult(interp, "expected bytes", TCL_STATIC); return TCL_ERROR; } <pre> - foundin initialized to: "trunk"
- is_private initialized to: "0"
- login: "chrstphrchvz"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Cosmetic"
- status initialized to: "Open"
- submitter initialized to: "chrstphrchvz"
- subsystem initialized to: "12. ByteArray Object"
- title initialized to: "avoid leak in TestsetbytearraylengthObjCmd()"
- type initialized to: "Patch"
Ticket change [8eb8082eff] (rid 203251) by jan.nijtmans on 2022-08-23 07:06:16:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2459814.79602649"
- closer changed to: "jan.nijtmans"
- icomment: "Fixed [28c98255909b5e7c|here]"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [d780c62782] (rid 203252) by jan.nijtmans on 2022-08-23 07:06:19:
- closedate changed to: "2459814.79605436"
- icomment: "Fixed [28c98255909b5e7c|here]"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"