I think the Tcl_IncrRefCount(valuePtr) statement does not belong there and causes a memory leak
Logged In: YES user_id=79902 Originator: NO
And yet masses of code doesn't leak. Seems someone's expectations are wrong...
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\)
Logged In: YES
user_id=79902
Originator: NO
And yet masses of code doesn't leak. Seems someone's expectations are wrong...
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\)