Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b8afad4c8a323ec1dbc96ede47c27e280dfd56c5
Ticket: 4dbdd9af1439d874381fd6fdb968bcb0d596f0bb
TclDeleteNamespaceVars leaks when unset trace revives var under deletion
User & Date: mr_calvin on 2016-09-01 20:39:21
Changes

  1. icomment:
    Hi Don,
    
    I don't see how the Var leak could be caused by the 0083565512bf7409 checkin, which essentially adds Tcl_GetVariableFullName to TclDeleteNamespaceVars.
    
    Rather, the previously present TclSetVarUndefined (ie. prior to checkin 2fbb34460171f3c1) was accidentally removed, so the revived Var fails to be freed in FreeVarEntry because of TclIsVarUndefined == FALSE ...
    
    As for the Literal leak: Shouldn't it be prohibited to register/create a literal in a deletion/shutdown situation?
    
  2. login: "mr_calvin"
  3. mimetype: "text/plain"