Skip to content
Tcl Source Code Artifact [9ee86232c7]
Login

Artifact [9ee86232c7]

Artifact 9ee86232c77d77c336f57c1b341f9821f2292714:

Ticket change [9ee86232c7] - Ticket [a3309d01dbb0f23c|a3309d01db] <i>Leak in array when using generated lists as keys</i> status still Open with 4 other changes by aku on 2015-07-15 23:10:10.
D 2015-07-15T23:10:10.779
J comment I've\sdiscovered\sa\smemory\sleak\sin\sTcl\s8.6.4\son\sFreeBSD\s9.1\sand\s10.1\swith\sthe\sfollowing\sscript.\sThe\sleak\sdoes\snot\soccur\sunder\sTcl\s8.5\r\n\r\nhttps://gist.github.com/bovine/15c350d044325a93d5cb\s--\sattached\r\n\r\nThe\sissue\sseems\sto\sbe\sspecific\sto\susing\slists\sthat\sare\sbuilt\sup\susing\s"lappend".\sIf\s$foo\sis\susing\sa\slist\sthat\sis\sdirectly\s"set"\sin\sa\ssingle\soperation,\sthen\sthe\sleak\sdoes\snot\sappear\sto\soccur.\r\n\r\nAdditionally,\sthe\sleak\soccurs\swhen\susing\s"unset"\sto\sremove\sindividual\selements\sfrom\smyarray.\sIf\syou\s"array\sunset\smyarray"\sentirely,\sthen\sthe\smemory\sseems\sto\sbe\sproperly\sfreed.
J icomment gist\sextracted\sand\sattached.
J login aku
J mimetype text/plain
K a3309d01dbb0f23c3cf717ace30d9663fa54735f
U aku
Z 37f8ecc04a41a39d2326209c5798167f