Skip to content
Tcl Source Code View Ticket
Login

View Ticket

TSD data leak

Closed / Fixed2687952fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-03-15 20:44:40
Tcl_GetThreadData allocates data of various sizes using ckalloc.  The pointer to this data is stored in thread specific data.

Previously (in Tcl 8.5), this data was freed via ckfree in TclpFinalizeThreadDataThread (tclThreadStorage.c); however, the new function (TclFinalizeThreadDataThread) no longer does this.

This causes all thread specific data to be leaked.
dkfplain2009-03-16 05:35:43
allow_comments - 1

Not the most elegant fix ever, but at least it is correct.
Log in (anonymous is fine) to add a comment.