Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcl_SetVar2 contais a memory leak

Closed / Invalid1763244fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-07-29 20:42:53
I think the Tcl_IncrRefCount(valuePtr) statement does not belong there and causes a memory leak
dkfplain2007-07-30 05:44:49
Logged In: YES 
user_id=79902
Originator: NO

And yet masses of code doesn't leak. Seems someone's expectations are wrong...
msoferplain2007-07-30 10:16:36
Logged In: YES 
user_id=148712
Originator: NO

Any evidence? Because I do not think so, and neither does valgrind.

It is balanced by a Tcl_DecrRefCount two lines below. The incr/decr spiel is necessary for ... hairy monster issues (see http://wiki.tcl.tk/14880)
Log in (anonymous is fine) to add a comment.