Overview
| Artifact ID: | 8cadf12d2f19ca88ec4a338a046bc4170cdf0760f5df5f47882ccb8152bd2f94 |
|---|---|
| Ticket: | a97680cbed27a3bb26b82800cdfd662064aa1587
Tcl_FSJoinToPath(): outdated comment |
| User & Date: | chrstphrchvz on 2023-07-25 20:57:43 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
The comment documenting <tt>Tcl_FSJoinToPath()</tt> says: <pre> * The objects in the array given will temporarily have their refCount * increased by one, and then decreased by one when this function exits * (which means if they had zero refCount when we were called, they will * be freed). </pre> This appears to be outdated. It has been documented in 8.7 ([62834021ed4c], [https://www.tcl-lang.org/man/tcl8.7/TclLib/FileSystem.html#M47]) that the reference counts of values in the <tt>objv</tt> array must be nonzero. Those reference counts used to be temporarily incremented by <tt>Tcl_ListObjAppendElement()</tt>, but that was removed in [55c8c6c1552f], and <tt>TclJoinPath()</tt> currently seems to leave reference counts of inputs as-is.
- foundin changed to: "8.6.13"
- is_private changed to: "0"
- login: "chrstphrchvz"
- priority changed to: "5 Medium"
- private_contact changed to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "chrstphrchvz"
- subsystem changed to: "37. File System"
- title changed to: "Tcl_FSJoinToPath(): outdated comment"
- type changed to: "Bug"