Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d6999ac188ea9d4cbfee71693ec6c9817dfdb365
Ticket: 1049909fffffffffffffffffffffffffffffffff
Obj Memory Leak
User & Date: jslisong on 2004-10-19 09:50:25
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    sorry my poor english.
    
    but i think that follow funtion in tclobj.c need to add 
    some code to avoid memory leak.
    
    void
    TclFinalizeCompExecEnv()
    {
        register Tcl_Obj  *objPtr;
    
        Tcl_MutexLock(&tableMutex);
        if (typeTableInitialized) {
            Tcl_DeleteHashTable(&typeTable);
            typeTableInitialized = 0;
        }
        Tcl_MutexUnlock(&tableMutex);
        Tcl_MutexLock(&tclObjMutex);
    
    //{ lisong 2004-10-19
    // add to fix memory leak of objptr
    while (tclFreeObjList != NULL)
    {
    objPtr = tclFreeObjList;
    tclFreeObjList = objPtr-
    >internalRep.otherValuePtr;
    }
    free(objPtr);
    //}lisong
    
        Tcl_MutexUnlock(&tclObjMutex);
    
        TclFinalizeCompilation();
        TclFinalizeExecution();
    }
    
  4. foundin changed to: "obsolete: 8.4.7"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "jslisong"
  9. subsystem changed to: "10. Objects"
  10. title changed to: "Obj Memory Leak"
  11. type changed to: "Bug"