Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1464c148c6f5f0b2c1d5d0bffdff0f907feb6b7d
Ticket: 731706ffffffffffffffffffffffffffffffffff
memory leak in DictInfoCmd
User & Date: nobody on 2003-05-03 02:58:51
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. 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
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "15. Dict Object"
  10. title changed to: "memory leak in DictInfoCmd"
  11. type changed to: "Bug"