Artifacts Associated With Ticket 517503ffffffffffffffffffffffffffffffffff
Ticket change [0d2e77b366] (rid 114316) by msofer on 2002-02-14 13:32:06:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- comment initialized 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 initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "24. Channel Commands"
- title initialized to: "mem leakin Tcl_GetsObjCmd ?"
- type initialized to: "Bug"
Ticket change [ceb501edf0] (rid 96098) by dkf on 2002-02-14 21:19:04:
- icomment:
Logged In: YES user_id=79902 Looks like a leak to me, though an awkward one to hit in practice.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [6afb121bb0] (rid 128241) by andreas_kupries on 2002-02-15 00:26:20:
- priority changed to: "8"
Ticket change [96f795e631] (rid 106426) by andreas_kupries on 2002-02-15 02:05:37:
- icomment:
Logged In: YES user_id=75003 I agree.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Add attachment "517503.diff" [340dffc68e] (rid 106698) by andreas_kupries on 2002-02-15 02:11:59.
Ticket change [2bb948a8a9] (rid 118790) by andreas_kupries on 2002-02-15 02:11:59:
- assignee changed to: "msofer"
- icomment:
Logged In: YES user_id=75003 Trivial patch. Please review :)
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
Ticket change [b59e48d6fe] (rid 125274) by andreas_kupries on 2002-02-15 02:12:00:
- icomment:
File Added - 17880: 517503.diff
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [ff08adbb88] (rid 108691) by msofer on 2002-02-15 02:19:23:
- assignee changed to: "andreas_kupries"
- icomment:
Logged In: YES user_id=148712 Yep, that's it.
- login: "msofer"
- mimetype: "text/plain"
- title changed to: "mem leak in Tcl_GetsObjCmd ?"
- username: "msofer"
Ticket change [3201a25385] (rid 93535) by andreas_kupries on 2002-02-15 02:24:55:
- closedate changed to: "2002-02-14T19:24:55"
- closer changed to: "andreas_kupries"
- icomment:
Logged In: YES user_id=75003 Committed to head.
- login: "andreas_kupries"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "andreas_kupries"