Skip to content
Tcl Source Code Artifact [e3216df1aa]
Login

Artifact [e3216df1aa]

Artifact e3216df1aa23a968fd02624b2444463961659940:

Ticket change [e3216df1aa] - Ticket [3084489fffffffff|3084489fff] <i>Serious issue: Tcl_DuplicateObj isn&#39;t making a copy?</i> status still Pending with 4 other changes by msofer on 2010-10-12 05:10:13.
D 2010-10-12T05:10:13
J icomment The\sproblem\sis\sthat\sthe\sC-array\sreturned\sby\sTLOGE\sis\smeant\sto\sbe\sonly\sfor\sreading,\sand\sthis\sapp\sis\sWRITING\sto\sit\s(sorting\sthe\selements\sin\splace).\sAgain,\sTLOGE's\s8.5\sman\spage\sis\sclear:\s"The\smemory\spointed\sto\sis\nmanaged\sby\sTcl\sand\sshould\snot\sbe\sfreed\sor\swritten\sto\sby\sthe\scaller."\n\nThe\s8.4\sman\spage\srefers\sonly\snot\sfreeing\sthe\smem,\sso\sthis\susage\swas\snot\sexplicitly\sinvalid\sin\s8.4.\n\nThe\ssolution\sis\sto\smake\syour\sown\scopy:\sTcl_NewListObj(...),\sthen\ssort\sthat\sin\splace.\n
J login msofer
J mimetype text/plain
J username msofer
K 3084489fffffffffffffffffffffffffffffffff
U msofer
Z a1a8e5ab727760c220a8376692fdb703