memory leak in DictInfoCmd
Closed / Fixed731706ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2003-05-03 02:58:51
In my recent adventures with the Tcl source code, I found the following line of code: Tcl_SetObjResult(interp, Tcl_NewStringObj (Tcl_HashStats(&dict->table), -1)); This is from line 1651 of tclDictObj.c. 1. The Tcl_HashStats allocates a block of memory and returns it. 2. The caller, in this case DictInfoCmd, is not freeing the block of memory, which is inconsistent with the documented requirements for calling the Tcl_HashStats function. JJM
mistachkin Ticket [731706ffff]: 1 change
[History diff]2003-05-03 09:59:50
dkf Closed ticket [731706ffff].
[History diff]2003-05-07 22:26:51
dkf Ticket [731706ffff]: 3 changes
[History diff]2003-05-07 22:26:52
Log in (anonymous is fine) to add a comment.