<i>Leak in array when using generated lists as keys</i> status still Open with 4 other changes
by
.
D 2015-07-16T00:04:47.694
J icomment Just\splaying\saround\swith\sthis\son\sthe\sscript\slevel,\sI've\sbeen\sable\sto\ssimplify\sthe\stest\sto\sthe\sattached\smemleak-bovine.tcl\s+\smeminfo.tcl.\r\n\r\nOutput\sshows\sallocated\sbytes\sincreasing\sby\s~900\seach\s5\siterations,\sand\s(total\smallocs-total\sfrees)\sincreasing\sby\s25\s-\sthis\sall\safter\sthe\sarray\sis\s"full"\sand\selements\sare\sbeing\sdeleted.\r\n\r\nNote\sthis\stest\sdoesn't\srequire\s[lappend].\s\sThe\sdependency\son\s[unset\smyarray($key)]\sis\sgenuine\s--\susing\s[array\sunset\smyarray\s$key]\sfails\sto\sexhibit\sthe\sleak.\r\n\r\nOther\svariations:\r\n\r\n1.\smoving\sthe\sentire\sbody\sof\s[doit]\sinto\sthe\sloop\sat\sglobal\sscope\sdoesn't\sleak\r\n2.\smoving\sthe\sbody\sof\s[doit]\sinto\sthe\sloop\sand\swrapping\sit\sin\sa\sproc\sleaks\r\n3.\smaking\smyarray\sproc-local\sinstead\sof\sglobal\sleaks
J login aspect
J mimetype text/plain
J username aspect
K a3309d01dbb0f23c3cf717ace30d9663fa54735f
U aspect
Z 7fb5f09a2eb9035c30e042ad3596e46b