Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ffc5cd3df6c4701e264476f1d79dec2d7f07aacb
Ticket: 3598580fffffffffffffffffffffffffffffffff
Tcl_ListObjReplace may release deleted elements too early
User & Date: ferrieux on 2012-12-27 23:57:17
Changes

  1. icomment:
    
    
    allow_comments - 0
    
    Jan, two nitpicking questions ;)
    
    (1) there's an early return path (AttemptNewList); in that case the incRef'ed objv[*] are leaked. Admittedly that happens only for very large lists / lowmem conditions, but ...
    
    (2)  at the point of the former late-incrRef code, there was previously a comment explaining "no memcopy because we need to iterate anyway". Since we no longer do, what about using memcopy (or memmove) ?
    
    
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"