Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7cb360a7ce2c4a71132973c3e9668ece55fae828
Ticket: 983660ffffffffffffffffffffffffffffffffff
Leak of unshared literals at interp deletion
User & Date: msofer on 2004-07-04 07:19:17
Changes

  1. icomment:
    Logged In: YES 
    user_id=148712
    
    Comments that are probably relevant:
    
    (1) in tclLiteral.c (l 448, TclAddLiteralObj): the literalis
    *not* added to the literal tables, only to the literal array
    
    (2) in tclCompile.c (l 661, TclCleanupByteCode): if the
    interp is marked as deleted, it will already have cleaned up
    all literals so we refrain from doing it again
    
    (3) in tclBasic.c (l 1112, DeleteInterpProc): interp
    deletion cleans up all literals in the literal table
    
    So it looks like the returnOptions added to the literal
    array (but not to the table) at line 2593 in tclCompCmds.c
    (TclCompileReturnCmd) is bypassed by the cleanup process.
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"