.
D 2019-07-25T16:29:57.422
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment Tcl_DictObjPut(...,\sdictPtr,\skeyPtr,\svalPtr);\r\n\r\nSometimes\sthe\sdict\swill\sstore\sa\sref\sto\skeyPtr\sand\sincrement\sits\srefcount,\r\neffectively\staking\sresponsibility\sfor\slater\srelease,\sbut\snot\salways.\sNotably,\r\nif\san\sequal\skey\sis\salready\sin\sthe\sdict,\sthe\sold\sone\sis\skept\sin\spreference\sto\r\nswapping\sthe\snew\sone\sin.\r\n\r\nThis\splaces\smore\sburden\son\srefcounting\son\sthe\scaller,\sand\smakes\scalls\slike\r\n\r\nTcl_DictObjPut(...,\sdictPtr,\sTcl_NewStringObj(...),\svalPtr)\r\n\r\nunsafe\sto\suse\s--\seven\sthough\smany\ssuch\sexamples\sare\sin\sTcl's\sown\ssource\scode.
J is_private 0
J login dgp
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter dgp
J subsystem 15.\sDict\sObject
J title Tcl_DictObjPut()\s-\spoor\susability
J type Bug
K 656fe3c8163aea1bbf10552962fcc79cb49c5bad
U dgp
Z ad2c9bd9c9390e7ae76bf61d1afe353d