<i>Tcl_ListObjReplace may release deleted elements too early</i> status still Closed with 4 other changes
by
.
D 2012-12-28T00:20:07
J icomment >Jan,\stwo\snitpicking\squestions\s;)\nPlease\sdo!\sYour\s'nitpicking'\sis\salways\sappreciated!\n>there's\san\searly\sreturn\spath\s....\nThere\salready\swas\sa\s(possible)\smemory\sleak\sin\sthis\scase,\sif\nthe\sobjv\sarray\scontains\svalues\swith\srefcount\s0.\sStrictly\sspeaking,\nif\sincrementing\srefcounts\sfirst,\sthen\sin\scase\sof\sTCL_ERROR\nthey\sshould\sbe\sdecremented\sagain\sbefore\sreturning.\sBut\ndoing\sthis\sin\s8.x\sis\sa\sbehaviour\schange:\sit\smight\sfree\sobjects\nthat\swouldn't\sbe\sfreed\sbefore.\sSince\sit's\sso\srare,\sI\swould\nprefer\sto\skeep\sit\sas\sis,\sat\sleast\sin\s8.0.\sFor\s9.0,\sbetter\nfix\sit,\sthat\swould\sprevent\sa\sleak\sin\sall\ssituations.\n>\swhat\sabout\susing\smemcopy\nGood\sidea.\sNot\sworth\sto\sdo\sit\sfor\s8.x,\sbut\sfor\s9.0\nthis\scode\scould\sdefinetely\shave\san\soverhoul.\n
J login nijtmans
J mimetype text/plain
J username nijtmans
K 3598580fffffffffffffffffffffffffffffffff
U nijtmans
Z 7dfcfffd75fb9d2c3b399d4b38401da2