|
2023-07-25
| ||
| 20:57 | • New ticket [a97680cbed] Tcl_FSJoinToPath(): outdated comment. artifact: 8cadf12d2f user: chrstphrchvz | |
Tcl_FSJoinToPath(): outdated comment
Opena97680cbed27a3bb26b82800cdfd662064aa1587Created 3 years agoUpdated 3 years ago
Descriptionwiki2023-07-25 20:57:43
The comment documenting Tcl_FSJoinToPath() says:
* 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).
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 objv array must be nonzero. Those reference counts used to be temporarily incremented by Tcl_ListObjAppendElement(), but that was removed in [55c8c6c1552f], and TclJoinPath() currently seems to leave reference counts of inputs as-is.
Log in (anonymous is fine) to add a comment.