Overview
| Artifact ID: | 1464c148c6f5f0b2c1d5d0bffdff0f907feb6b7d |
|---|---|
| Ticket: | 731706ffffffffffffffffffffffffffffffffff
memory leak in DictInfoCmd |
| User & Date: | nobody on 2003-05-03 02:58:51 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
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
- foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "15. Dict Object"
- title changed to: "memory leak in DictInfoCmd"
- type changed to: "Bug"