<i>Tcl_ListObjReplace may release deleted elements too early</i> status still Open with 4 other changes
by
.
D 2012-12-29T17:05:14
J icomment From\sthe\sTcl_ListObjIndex\sdocumentation:\n>\sThe\sreference\scount\sfor\sthe\slist\selement\sis\snot\sincremented;\n>\sthe\scaller\smust\sdo\sthat\sif\sit\sneeds\sto\sretain\sa\spointer\sto\sthe\selement.\nIn\sthis\scase,\sthe\scaller\sdoesn't\sretain\sa\spointer\sto\sthe\selement,\nit\sonly\spasses\sit\sto\sTcl_ListObjReplace.\sAfter\sthat,\sobjP\nis\snot\sused\sany\smore.\sThe\sfunction\sTcl_ListObjReplace\nis\sretaining\sa\spointer\sto\sthe\selement\s(in\sthe\slist\nrepresentation),\sso\sthis\sfunction\sshould\s(and\sdoes)\nincrement\sthe\srefCount.\n
J login nijtmans
J mimetype text/plain
J username nijtmans
K 3598580fffffffffffffffffffffffffffffffff
U nijtmans
Z 5f5cffc4f5b8f4cefc6a594ffbb1d999