.
D 2023-07-25T20:57:43.553
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment The\scomment\sdocumenting\s<tt>Tcl_FSJoinToPath()</tt>\ssays:\r\n<pre>\r\n\s*\tThe\sobjects\sin\sthe\sarray\sgiven\swill\stemporarily\shave\stheir\srefCount\r\n\s*\tincreased\sby\sone,\sand\sthen\sdecreased\sby\sone\swhen\sthis\sfunction\sexits\r\n\s*\t(which\smeans\sif\sthey\shad\szero\srefCount\swhen\swe\swere\scalled,\sthey\swill\r\n\s*\tbe\sfreed).\r\n</pre>\r\n\r\nThis\sappears\sto\sbe\soutdated.\sIt\shas\sbeen\sdocumented\sin\s8.7\s([62834021ed4c],\s[https://www.tcl-lang.org/man/tcl8.7/TclLib/FileSystem.html#M47])\sthat\sthe\sreference\scounts\sof\svalues\sin\sthe\s<tt>objv</tt>\sarray\smust\sbe\snonzero.\sThose\sreference\scounts\sused\sto\sbe\stemporarily\sincremented\sby\s<tt>Tcl_ListObjAppendElement()</tt>,\sbut\sthat\swas\sremoved\sin\s[55c8c6c1552f],\sand\s<tt>TclJoinPath()</tt>\scurrently\sseems\sto\sleave\sreference\scounts\sof\sinputs\sas-is.
J foundin 8.6.13
J is_private 0
J login chrstphrchvz
J priority 5\sMedium
J private_contact 6133eb3026f9b10aa9b7b48da92ae2834fc225b0
J resolution None
J severity Minor
J status Open
J submitter chrstphrchvz
J subsystem 37.\sFile\sSystem
J title Tcl_FSJoinToPath():\soutdated\scomment
J type Bug
K a97680cbed27a3bb26b82800cdfd662064aa1587
U chrstphrchvz
Z 3cfeb7ab816c84790ba2a94a2b1625e7