.
D 2011-08-02T19:54:31
J icomment \nUsing\sthe\susual\stcltest\sharness\sfor\smemory\sleak\stesting,\nI\stried\sthis:\n\ntestConstraint\smemory\s[llength\s[info\scommands\smemory]]\ntest\sthread-8.1\s{Bug\s3381371}\s-constraints\smemory\s-setup\s{\n\s\s\s\sproc\sgetbytes\s{}\s{\n\s\s\s\s\s\s\s\sset\slines\s[split\s[memory\sinfo]\s"\\n"]\n\s\s\s\s\s\s\s\slindex\s$lines\s3\s3\n\s\s\s\s}\n\s\s\s\spackage\srequire\sThread\n}\s-body\s{\n\s\s\s\sset\send\s[getbytes]\n\s\s\s\sfor\s{set\si\s0}\s{$i\s<\s5}\s{incr\si}\s{\n\s\s\s\s\s\s\s\sset\st\s[thread::create\s-joinable]\n\s\s\s\s\s\s\s\sthread::release\s$t\n\s\s\s\s\s\s\s\sthread::join\s$t\n\s\s\s\s\s\s\s\sset\sstart\s$end\n\s\s\s\s\s\s\s\sset\send\s[getbytes]\n\s\s\s\s}\n\s\s\s\sexpr\s{$end\s-\s$start}\n}\s-cleanup\s{\n\s\s\s\srename\sgetbytes\s{}\n\s\s\s\sunset\s-nocomplain\si\sstart\send\st\n}\s-result\s0\n\nIt\sshows\sno\sleak,\susing\sthe\strunk\sof\sTcl\s&\sThread.\n\nWhat\sis\sit\sthat's\sclaimed\sto\sbe\sleaking?\s\sApparently\nit's\snot\sTcl_Alloc'ed\s\smemory?\s\sOr\sis\sthis\sa\sleak\sI\s\nshould\snot\sbe\sable\sto\ssee\stesting\son\sLinux?\n
J login dgp
J mimetype text/plain
J username dgp
K 3381371fffffffffffffffffffffffffffffffff
U dgp
Z b5ee81288201eb8b371423c939dc49e5