Overview
| Artifact ID: | 9ee86232c77d77c336f57c1b341f9821f2292714 |
|---|---|
| Ticket: | a3309d01dbb0f23c3cf717ace30d9663fa54735f
Leak in array when unsetting keys from a proc |
| User & Date: | aku on 2015-07-15 23:10:10 |
Changes
- comment changed to:
I've discovered a memory leak in Tcl 8.6.4 on FreeBSD 9.1 and 10.1 with the following script. The leak does not occur under Tcl 8.5 https://gist.github.com/bovine/15c350d044325a93d5cb -- attached The issue seems to be specific to using lists that are built up using "lappend". If $foo is using a list that is directly "set" in a single operation, then the leak does not appear to occur. Additionally, the leak occurs when using "unset" to remove individual elements from myarray. If you "array unset myarray" entirely, then the memory seems to be properly freed.
- icomment: "gist extracted and attached."
- login: "aku"
- mimetype: "text/plain"