Tcl_DeleteInterp directly frees iPtr->chanMsg
Closed / Fixed1577832fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-10-15 23:46:02
In HEAD, Tcl_DeleteInterp has the following code:
/*
* TIP #219, Tcl Channel Reflection API. Discard a
leftover state.
*/
if (iPtr->chanMsg != NULL) {
Tcl_DecrRefCount (iPtr->chanMsg);
iPtr->chanMsg = NULL;
}
I believe this block should actually be in
DeleteInterpProc, where all the other interp fields are
actually freed since Tcl_EventuallyFree does not
necessarily end up calling DeleteInterpProc immediately.
andreas_kupriesplain2006-10-16 23:52:34
Logged In: YES user_id=75003 Moved. Committed.
Log in (anonymous is fine) to add a comment.