.
D 2007-09-04T20:20:49
J closedate 2007-09-04T13:20:49
J closer msofer
J icomment Logged\sIn:\sYES\s\nuser_id=148712\nOriginator:\sNO\n\nNo,\sthat\sis\swrong:\syou\sshould\sTcl_IncrRefCount(tmp)\sbefore\scalling\sTcl_ObjSetVar2().\sSee\shttp://wiki.tcl.tk/14880\sfor\sguidance\son\sthese\sissues.\n\nWhy\sthe\sproblem\sis\sonly\sapparent\son\sServer\s2003:\sa\smystery.\sIt\sis\salways\swrong,\s$varname\swill\sbe\sjust\sabout\sanything\safter\sthis:\sthe\sobj\shas\sbeen\sfreed,\sit\swill\sbe\sreused\sfor\ssomething\selse\s(assuming\sa\sstandard\sTcl\scompilation).\n\n[*]\sIf\sthe\srefCount\sis\snot\sincr/decr,\sTcl\s(pre\s8.5,\snot\sanymore\sin\sHEAD)\swill\sleak\sthe\sTcl_Obj\swhenever\sa\svariable\scalled\s'varname'\scannot\sbe\sset\s-\sfor\sinstance,\sif\sit\srefers\sto\sa\snon-existing\snamespace.\n
J login msofer
J mimetype text/plain
J resolution Invalid
J status Pending
J username msofer
K 1783443fffffffffffffffffffffffffffffffff
U msofer
Z d33aad44c10eab22e3722fb763017207