Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Memory leaks with arrays

Closed / Duplicate217808ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:43:58
OriginalBugID: 1257 Bug
Version: 8.1b1
SubmitDate: '1999-02-23'
LastModified: '1999-03-17'
Severity: SER
Status: Closed
Submitter: pat
ChangedBy: stanton
RelatedBugIDs: 1199
OS: Windows NT
OSVersion: 4.0 Service Pack 3
Machine: X86
FixedDate: '2000-10-25'
ClosedDate: '1999-03-17'


Name:
Christian Stoellinger

ReproducibleScript:
for {set i 0} {$i < 10000} {incr i} {
   set a($i) "1234567890"
}

for {set i 0} {$i < 10000} {incr i} {
   unset a($i)
}

# Memory is still allocated!!!



ObservedBehavior:
Memory of arrays will not be freed.



DesiredBehavior:
Freed memory.





Simply run the script above in a tcl shell and look at the task
manager. You will see memory is allocated and stays allocated.
welch Closed ticket [217808ffff]. [History diff]2000-10-26 07:49:19
dgp Ticket [217808ffff]: 3 changes [History diff]2001-04-13 23:08:47
Log in (anonymous is fine) to add a comment.