[libgfortran, patch] Fix fd leak in unix.c’s fallback_access(), aka PR 45165

FX fxcoudert@gmail.com
Sat Feb 26 15:11:00 GMT 2011


The attached patch fixes a file descriptor leak in fallback_access(), a function in io/unix.c for systems without a system access() (which happens on newlib systems); this is PR 45165.

The patch was tested by building and regtesting on x86_64-darwin, simulating the lack of access() by overriding libgfortran configure results. OK to commit to trunk?

Cheers,
FX

PS: I don't think it's worth backporting, as it's only a leak on newlib systems


-------------- next part --------------
A non-text attachment was scrubbed...
Name: fd_leak.ChangeLog
Type: application/octet-stream
Size: 140 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110226/79b9ceb1/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fd_leak.diff
Type: application/octet-stream
Size: 545 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110226/79b9ceb1/attachment-0001.obj>


More information about the Fortran mailing list