Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ccc8b4121c09d22ae5b9d99a82300f893ebe6352
Ticket: 983501ffffffffffffffffffffffffffffffffff
Resource leak in [pkgconfig] ?
User & Date: dgp on 2004-07-01 15:51:45
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    Tcl_RegisterConfig() creates a [pkgconfig]
    command.  Configuration values are stored
    in a dictionary, and the [pkgconfig] command
    provides read access to the dictionary.
    
    When the [pkgconfig] command is
    deleted from the interp, the dictionary
    of data remains, it is not freed until
    the interp is deleted.  The elements
    of the dictionary may be freed as they
    are overwritten by a later call to 
    Tcl_RegisterConfig() on the same interp.
    
    Besides an unbalanced cleanup, this
    also opens the possibility of having
    [pkgconfig] return data values that
    are a mixture of different Tcl_RegisterConfig()
    calls (possibly from multiple versions of
    the same package?).
    
    I think we want QueryConfigDelete() to
    clear the dictionary of data.
    
  4. foundin changed to: "obsolete: 8.5a2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "54. Configuration Reporting"
  10. title changed to: "Resource leak in [pkgconfig] ?"
  11. type changed to: "Bug"