Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 059db61135eef9590e46561c6b623198544a2703
Ticket: 604609ffffffffffffffffffffffffffffffffff
leak in command rename traces
User & Date: hemanglavana on 2002-09-05 23:20:29
Changes

  1. icomment:
    Logged In: YES 
    user_id=81875
    
    The following patch should take care of the first complaint:
    
    Index: tclBasic.c
    ===================================================================
    RCS file: /cvsroot/tcl/tcl/generic/tclBasic.c,v
    retrieving revision 1.69
    diff -r1.69 tclBasic.c
    2526,2527c2526,2532
    <        * rename traces; while a delete trace is active we
    will not
    <        * process any more delete traces 
    ---
    >        * rename traces; while if a delete trace is active
    we will never
    >        * reach here -- because Tcl_DeleteCommandFromToken
    checks for the
    >        * condition (cmdPtr->flags & CMD_IS_DELETED) and
    returns immediately
    >          * when a command deletion is in progress. For all
    other traces,
    >          * delete traces will not be invoked but a call to
    TraceCommandProc
    >          * will ensure that tracePtr->clientData is freed
    whenever the
    >          * command is "oldName" deleted.
    2531,2533d2535
    <       }
    <       if (cmdPtr->flags & TCL_TRACE_DELETE) {
    <           flags &= ~TCL_TRACE_DELETE;
    
    Let me know if the 2nd complaint persists.
    
    Hemang.
    
    
  2. login: "hemanglavana"
  3. mimetype: "text/plain"
  4. username: "hemanglavana"