Skip to content
Tcl Source Code Artifact [14ec51bcaf]
Login

Artifact [14ec51bcaf]

Artifact 14ec51bcaf27e50381bcfc05de59b1dc0c9fe90b:

Ticket change [14ec51bcaf] - New ticket [a3309d01dbb0f23c|a3309d01db] <i>Leak in array when using generated lists as keys</i>. by bovine on 2015-07-15 22:50:54.
D 2015-07-15T22:50:54.254
J assignee nobody
J closer nobody
J cmimetype text/plain
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\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 foundin 8.6.4
J is_private 0
J login bovine
J priority 5\sMedium
J private_contact f0e2312a244c99b69b66ff52a743015292c5af63
J resolution None
J severity Severe
J status Open
J submitter bovine
J subsystem 14.\sList\sObject
J title Leak\sin\sarray\swhen\susing\sgenerated\slists\sas\skeys
J type Bug
K a3309d01dbb0f23c3cf717ace30d9663fa54735f
U bovine
Z 9084508f688650ba32a9962164e9c7e1