Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3393795718138c9d0419293ab8d7daccaf0581f1
Ticket: 597936ffffffffffffffffffffffffffffffffff
leak in new thread allocator
User & Date: vasiljevic on 2002-08-24 05:01:29
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    
    Simple. Here's the CVS diff: 
     
    Index: tclObj.c 
    =================================================================== 
    RCS file: /cvsroot/tcl/tcl/generic/tclObj.c,v 
    retrieving revision 1.39 
    diff -r1.39 tclObj.c 
    686c686,688 
    < 
    --- 
    > #ifdef USE_THREAD_ALLOC 
    >     TclThreadFreeObj(objPtr); 
    > #else 
    698a701 
    > #endif /* USE_THREAD_ALLOC */ 
     
    It was a simple matter of not calling the right release. 
    So the memory was allocated with the new and  
    released with the old allocator.  
    This is not a thread issue per-se.  
     
    Cheers 
    Zoran 
      
      
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"