<i>Serious issue: Tcl_DuplicateObj isn't making a copy?</i> status still Pending with 4 other changes
by
.
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