Skip to content
Tcl Source Code Artifact [c86f22a9b3]
Login

Artifact [c86f22a9b3]

Artifact c86f22a9b34e34f055f63830ffc10db0c3b54402:

Ticket change [c86f22a9b3] - Pending ticket [3598580fffffffff|3598580fff]: <i>Tcl_ListObjReplace may release deleted elements too early</i> plus 6 other changes by nijtmans on 2012-12-28 03:58:22.
D 2012-12-28T03:58:22
J closedate 2012-12-27T20:58:22
J closer nijtmans
J icomment >Uh,\swhat\sabout\sa\sTclDecrRefCountNoDeleteAtZero\s?\nAre\syou\sserious?\sPlease\sdon't\sgo\sthat\sway.\n>....my\sdistrust\sof\sthe\schoice\s"create\sobjects\sat\n>\srefcount\szero"....\nThis\schoice\sserved\sTcl\swell,\sbut\sit\smust\sbe\sused\nwith\scare.\stransfering\san\sobject\swith\srefCount=0\nmeans:\splease\sremove\sit\swhen\syou\sare\sdone\swith\nit.\stransfering\san\sobject\swith\srefCount=1\smeans\nthat\sthe\scaller\sexpects\sit\sto\sexist\swhen\sthe\sfunction\ncall\sreturns.\sUnfortunately,\sTcl_ListObjReplace\nviolates\sthat\srule\sin\sthe\sTCL_ERROR\scase,\swhich\ncauses\sa\spossible\smemory\sleak.\s\n\nFor\s8.4,\sthe\sescape\spath\sdoesn't\sexist,\sso\neverything\sis\sOK.\nFor\s8.[56],\sthe\srefcounts\scould\sbe\srestored\sby:\n<http://core.tcl.tk/tcl/info/d5147fc677>\nFor\s9.x,\sa\sTcl_DecrRefCount\swould\sbe\nbetter\shere,\snoting\sa\sPOTENTIAL\sINCOMPATIBILITY.\n\nAlex,\s(and\sDon)\show\sdo\syou\sthink\sabout\sthat?\n
J login nijtmans
J mimetype text/plain
J status Pending
J username nijtmans
K 3598580fffffffffffffffffffffffffffffffff
U nijtmans
Z 4a0d1b1ab3f7ac505851967b6022a1c4