Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-02-27
06:28 • Closed ticket [1667990fff]: possible refcount mismatch plus 7 other changes artifact: 4aada9e675 user: andreas_kupries
06:08 • Ticket [1667990fff]: 5 changes artifact: 2df138c381 user: andreas_kupries
2007-02-24
19:25 • New ticket [1667990fff]. artifact: 4a950fdcbd user: dgp

possible refcount mismatch

Closed / Fixed1667990fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2007-02-24 19:25:47
Comparing NewReflectedChannel()
and FreeReflectedChannel(), it
appears that the
Tcl_IncrRefCount() call on
line 1864 of Revision 1.19
of tclIORChan.c doesn't
have any balancing call
to Tcl_DecrRefCount().
andreas_kupriesplain2007-02-27 06:08:10
Logged In: YES 
user_id=75003
Originator: NO

I agree. The handle obj has no matching DecrRefcount. I had to go over the various array sizes again to see it.
andreas_kupriesplain2007-02-27 06:28:46
Logged In: YES 
user_id=75003
Originator: NO

Committed a fix. Testsuite is does not report crashes or other errors.
Log in (anonymous is fine) to add a comment.