Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b0d5786dede7108a97d582d710d9934f76ba1a52
Ticket: 80304238ac5310b259c79c546d36d790c2a1d39e
foreach memleak
User & Date: dgp on 2016-02-26 04:10:37
Changes

  1. icomment:
    
    It appears that this code is a nasty way to create
    a circular reference, where each of 2 Tcl_Obj values
    holds a reference to the other as part of its intrep.
    This defeats the refCounting system, and the
    objects leak.
    
    The cross referencing comes between a "list"
    value with a single element which is a "localVarName"
    value with a cached localName (twoPtrValue.ptr1)
    which is the original list value.
    
  2. login: "dgp"
  3. mimetype: "text/plain"