Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: db60d47f08717afd80f7add8e02986cc521125bf
Ticket: 1348775fffffffffffffffffffffffffffffffff
varTraces leak when variable is unset
User & Date: msofer on 2005-11-05 02:07:54
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The new test trace-8.9 shows an 18-byte leak:
            set end [getbytes]
            for {set i 0} {$i < 5} {incr i} {
                set apa {a 1 b 2}
                set bepa [lrange $apa 0 end]
                trace add variable bepa write {error hej}
                catch {set bepa a}
                unset bepa
                set tmp $end
                set end [getbytes]
            }
            expr {$end - $tmp}
    
    This supercedes #1342858, which detected the same leak
    but blamed it on [dict].
    
    
  4. foundin changed to: "obsolete: 8.5a4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "msofer"
  9. subsystem changed to: "46. Traces"
  10. title changed to: "varTraces leak on error"
  11. type changed to: "Bug"