http://bugs.winehq.org/show_bug.cgi?id=139
Summary: File descriptor leak Product: Wine Version: unspecified Platform: All OS/Version: All Status: CLOSED Severity: normal Priority: P1 Component: wine-ports AssignedTo: wine-bugs@winehq.org ReportedBy: terra-wine@diku.dk
It looks like wine_openpty leaks a (master) file descriptor if opening the slave fails.
(Further, it would make sense to make ptr1 and ptr2 const.)
------- Additional Comments From terra-wine@diku.dk 2000-14-12 20:22 ------- And while I am at it: it should also set errno to something just before the final return.
------- Additional Comments From terra-wine@diku.dk 2000-21-12 15:07 ------- Fixed by recent patch.
------- Additional Comments From jim@codeweavers.com 2000-21-12 16:00 ------- -jim
------- Additional Comments From jim@codeweavers.com 2000-21-12 16:08 ------- -j