|
2003-05-07
| ||
| 22:26 | • Ticket [731706ffff] memory leak in DictInfoCmd status still Closed with 3 ot... artifact: 25a37c402f user: dkf | |
| 22:26 | • Closed ticket [731706ffff]. artifact: 6ac4612b1c user: dkf | |
|
2003-05-03
| ||
| 09:59 | • Ticket [731706ffff]: 1 change artifact: 55e0e69ac6 user: mistachkin | |
| 02:58 | • New ticket [731706ffff]. artifact: 1464c148c6 user: nobody | |
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.