Skip to content
Tcl Source Code View Ticket
Login

View Ticket

TclContinuationsEnter memleak

Closed / Fixed2895323fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2009-11-10 16:44:02
The TclContinuationsEnter routine allocates a
ContLineLoc struct and stores it in a hash table.

When the hash table storage overwrites an
entry already in the table, the old entry is
not freed, and memory is leaked.

Committing fix for 8.5.8 release, but leaving
this tracker item open so aku can review and
see whether hash table overwrites are a 
symptom of something else going wrong.
dgp Ticket [2895323fff]: 1 change [History diff]2009-12-10 02:49:42
andreas_kupriesplain2009-12-11 02:13:37
allow_comments - 1

Committed an updated comment which describes when the re-entry can happen. It is a legal situation, our fix pluggin the memory leak was not papering over some other bug.
Log in (anonymous is fine) to add a comment.