Artifacts Associated With Ticket 541560ffffffffffffffffffffffffffffffffff
Ticket change [96b8e5ccab] (rid 106374) by deech on 2002-04-09 14:23:15:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- 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; } - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "deech"
- subsystem initialized to: "41. Memory Allocation"
- title initialized to: "Memory Leaks on invalid syntax"
- type initialized to: "Bug"
Ticket change [021e88700a] (rid 119591) by hobbs on 2002-04-10 02:18:01:
- closedate changed to: "2002-04-09T19:18:01"
- closer changed to: "hobbs"
- 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.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "hobbs"