Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0c4997657fb40e999a84a8c4c353a3cafd227a77
Ticket: 403755ffffffffffffffffffffffffffffffffff
Memory leak in Tcl_Import function (file=tclNamesp.c)
User & Date: hemanglavana on 2001-02-12 20:58:41
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    In Tcl_Import function, the following variable is initialized but never freed:
    
                    Tcl_DString ds;
                    Tcl_DStringInit(&ds);
                    Tcl_DStringAppend(&ds, nsPtr->fullName, -1);
                      ...
    
    This will result in memory leak. The attached  patch fixes this problem.
    
    Note that the patch is similar to the  Tcl_DStringFree(&ds) call found in
    Tcl_ProcObjCmd function in tclProc.c file.
    
    Thanks,
    Hemang.
    
  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: "hemanglavana"
  9. subsystem changed to: ""
  10. title changed to:
    Memory leak in Tcl_Import function (file=tclNamesp.c)
    
  11. type changed to: "Patch"