Overview
| Artifact ID: | 0d2e77b366dbb69133208c0f3462bf42a1b59a2b |
|---|---|
| Ticket: | 517503ffffffffffffffffffffffffffffffffff
mem leak in Tcl_GetsObjCmd ? |
| User & Date: | msofer on 2002-02-14 13:32:06 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- comment changed to:
While looking through the sources, I have stumbled accross something that looks to me like a possible memory leak. I may be missing something though. The issue is in function Tcl_GetsObjCmd (tclIOCmd.c): on line 253 we see if (objc == 3) { Tcl_DecrRefCount(linePtr); } I think that linePtr should be Tcl_DecrRefCount'ed also when objc is not equal to 3. As it is, I suspect the linePtr object will be leaked when there is an error reading the channel in set myVar [gets $chan] i.e., with (objc == 2) - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "msofer"
- subsystem changed to: "24. Channel Commands"
- title changed to: "mem leakin Tcl_GetsObjCmd ?"
- type changed to: "Bug"