Tcl Source Code

View Ticket
Login
Ticket UUID: 1211aceef2cabcad39cb26bb5dcb6b7dc14a1325
Title: temp file refcount breakage
Type: Bug Created on: 2014-07-11 17:58:39
Submitter: dgp Assigned to: dgp
Subsystem: 27. Channel Types Severity: Severe
Priority: 5 Medium Last modified: 2014-07-11 18:19:50
Status: Open Closed by: nobody
Resolution: Fixed Closed on:
Version: trunk
Description:
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.
User Comments:
dgp added on 2014-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.