Overview
| Artifact ID: | a2aa4ed7987474a17908d564487cb579edd62ca0 |
|---|---|
| Ticket: | 229181ffffffffffffffffffffffffffffffffff
Compiler Leaks Memory |
| User & Date: | dkf on 2001-01-18 17:11:31 |
Changes
- closedate changed to: "2001-01-18T10:11:31"
- closer changed to: "dkf"
- icomment:
The code, as written, is failing to call Tcl_IncrRefCount prior to calling Tcl_EvalObjEx amd Tcl_DecrRefCount afterwards. Add these calls and everything will be hunky-dory (assuming the string returned by GetScript() is cleaned up right too, of course.) while(1){ char* theScript = GetScript(); returnLength = NPstrlen( theScript ); theObj = Tcl_NewUnicodeObj(theScript, returnLength ); Tcl_IncrRefCount(theObj); Tcl_EvalObjEx(theInterp, theObj , TCL_EVAL_DIRECT ); Tcl_DecrRefCount(theObj); } - login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "dkf"