Tcl Source Code

View Ticket
Login
Ticket UUID: 2687952
Title: TSD data leak
Type: Bug Created on: 2009-03-15 20:44:40
Submitter: mistachkin Assigned to: dkf
Subsystem: 49. Threading Severity:
Priority: 9 Immediate Last modified: 2009-03-16 05:35:43
Status: Closed Closed by: dkf
Resolution: Fixed Closed on: 2009-03-15 22:35:43
Version: obsolete: 8.6b1.1
Description:
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.
User Comments:
dkf added on 2009-03-16 05:35:43:

allow_comments - 1

Not the most elegant fix ever, but at least it is correct.