Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8443a4e41afaf06993a22d33a12483edf2593d56
Ticket: 992108ffffffffffffffffffffffffffffffffff
TclFinalizeLock on Unix not correct.
User & Date: mistachkin on 2004-07-17 04:17:06
Changes

  1. icomment:
    Logged In: YES 
    user_id=113501
    
    If you unload the Tcl library and reload it, the memory will
    be leaked by pthread_mutex_init for all these mutexes
    (verified under valgrind on FreeBSD).
    
    And quite frankly, since Tcl is supposed to be fully
    supported in application embedding scenerios, I do not agree
    with the assertion that memory and resources (both internal
    and external) should not be reclaimed whenever possible.  
    
    Is there any platform where calling pthread_mutex_destroy
    would cause any harm in this case?
    
    On Windows, this would be analogous to not calling
    DeleteCriticalSection on the same three locks (which are
    also statically allocated).
    
    
    
  2. login: "mistachkin"
  3. mimetype: "text/plain"
  4. username: "mistachkin"