Skip to content
Tcl Source Code History Of Ticket 541560ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 541560ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 541560ffffffffffffffffffffffffffffffffff

  1. Ticket change [96b8e5ccab] (rid 106374) by deech on 2002-04-09 14:23:15:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      -Using tcl8.4 (earlier release I think it's 8.4a)
      -Windows 2000 5.00.2195 SP2
      -Memory appears to leak when interpreter is given 
      invalid syntax scripts.
      
      #include "Interpreter.h"
      #include <windows.h>
      
      int main(int argc, char* argv[])
      {
          Tcl_FindExecutable(argv[0]);
      
          while(1)
          {
              Tcl_Interp* pInterp = Tcl_CreateInterp();
              Tcl_Init(pInterp); 
      
              Tcl_Obj *Tcl_ObjPtr = Tcl_NewUnicodeObj
      (L"invalid syntax", 8);
              Tcl_EvalObjEx(pInterp, Tcl_ObjPtr, NULL );
      
      
              Tcl_DeleteInterp(pInterp); 
              Sleep(100);
          }
      return 0;
      }
      
      
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "deech"
    9. subsystem initialized to: "41. Memory Allocation"
    10. title initialized to: "Memory Leaks on invalid syntax"
    11. type initialized to: "Bug"
  2. Ticket change [021e88700a] (rid 119591) by hobbs on 2002-04-10 02:18:01:

    1. closedate changed to: "2002-04-09T19:18:01"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      Well, what sort of leak you are referring to wasn't 
      mentioned.  The first CreateInterp will create several 
      structures that won't go away until Tcl_Finalize.  Also, 
      you are definitely leaking the UnicodeObj by not doing and 
      incr/decr of the ref count.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "hobbs"