|
2014-07-11
| ||
| 18:20 | [1211aceef2] Fix refcount management of TclpTempFileName() that caused leak. check-in: 44648f6210 user: dgp tags: trunk | |
| 18:19 | • Ticket [1211aceef2] temp file refcount breakage status still Open with 5 oth... artifact: 65ae6fd4bd user: dgp | |
| 17:58 | • New ticket [1211aceef2]. artifact: 3a29f89238 user: dgp | |
temp file refcount breakage
Open1211aceef2cabcad39cb26bb5dcb6b7dc14a1325Created 12 years agoUpdated 12 years ago
Descriptionplain2014-07-11 17:58:39
Checkin http://core.tcl.tk/tcl/info/2f3da59db1 contributed a rewrite of the temporary file functionality on unix. Trouble is that the header of the routine TclpTempFileName() documents that when a non-NULL value is returned it is a (Tcl_Obj *) pointing to a zero ref count value, and callers believe this. The reform did not respect that claim. The new routine returns values with refcount 1, and leaks ensue.
Referenced by1
44648f6210[1211aceef2] Fix refcount management of TclpTempFileName() that caused leak. check-in2014-07-11 18:20:42
dgpplain2014-07-11 18:19:50
committed to trunk (or will when the net starts working again) a simple-minded patch to fix this issue. I welcome better solutions, but for now I just want to plug the leak.
Log in (anonymous is fine) to add a comment.