Overview
| Artifact ID: | f503b4a1993f3c5550e00e0193bb0a166887a3bd2f0f2fb25ecd4d3d0873c2e6 |
|---|---|
| Ticket: | 656fe3c8163aea1bbf10552962fcc79cb49c5bad
Tcl_DictObjPut() - poor usability |
| User & Date: | dgp on 2019-07-25 16:29:57 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
Tcl_DictObjPut(..., dictPtr, keyPtr, valPtr); Sometimes the dict will store a ref to keyPtr and increment its refcount, effectively taking responsibility for later release, but not always. Notably, if an equal key is already in the dict, the old one is kept in preference to swapping the new one in. This places more burden on refcounting on the caller, and makes calls like Tcl_DictObjPut(..., dictPtr, Tcl_NewStringObj(...), valPtr) unsafe to use -- even though many such examples are in Tcl's own source code.
- is_private changed to: "0"
- login: "dgp"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "15. Dict Object"
- title changed to: "Tcl_DictObjPut() - poor usability"
- type changed to: "Bug"