Skip to content
Tcl Source Code History Of Ticket 9d26c038b9
Login

History Of Ticket 9d26c038b9

Artifacts Associated With Ticket 9d26c038b9

  1. Ticket change [c167e95467] (rid 260406) by apnadkarni on 2026-10-25 02:31:55:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-plain"
    4. comment initialized to:
      As documented in the migration guide, since 9.0, `Tcl_ListObjIndex` may return ephemeral `Tcl_Obj` where the returned object is not owned by the (abstract) list implementation. The caller is supposed to take ownership (call IncrRef/DecrRef directly or by adding it to the interpreter result, another list etc.) or free it with `Tcl_BounceRefCount` to ensure unreferenced objects are freed. Lists created with `lseq` are an example.
      
      Several calls to `Tcl_ListObjIndex` do not doing this, both within core as well as in the included packages like ITcl and TDBC drivers, resulting in potential for memory leaks. This is not currently a major issue as lseq is the only such abstract list in the core and is unlikely to be passed as an argument in the context of the core calls where `Tcl_ListObjIndex` is invoked.
      
      Still, it would be advisable to fix this for the future where abstract lists, whether in the core or in extensions, might become more common.
      
    5. foundin initialized to: "9.0"
    6. is_private initialized to: "0"
    7. login: "apnadkarni"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "apnadkarni"
    14. subsystem initialized to: "- New Builtin Commands"
    15. title initialized to: "Potential for memory leaks using Tcl_ListObjIndex"
    16. type initialized to: "Bug"
  2. Ticket change [3e81b402a9] (rid 260408) by apnadkarni on 2026-10-25 03:17:39:

    1. login: "apnadkarni"
    2. mimetype: "text/plain"
    3. title changed to:
      Potential for memory leaks using Tcl_ListObjIndex on abstract lists
      
  3. Ticket change [54cec794d8] (rid 261310) by dkf on 2026-11-08 20:38:17:

    1. login: "dkf"
    2. mimetype: "text/plain"
    3. subsystem changed to: "14. List Object"