This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [libgfortran, patch] Fix fd leak in unix.c’s fallback_access(), aka PR 45165
- From: Jerry DeLisle <jvdelisle at frontier dot com>
- To: FX <fxcoudert at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, gfortran List <fortran at gcc dot gnu dot org>
- Date: Sat, 26 Feb 2011 07:19:39 -0800
- Subject: Re: [libgfortran, patch] Fix fd leak in unix.c’s fallback_access(), aka PR 45165
- References: <6405C1A4-782C-41E9-A16D-5685CE93DA61@gmail.com>
On 02/26/2011 07:11 AM, FX wrote:
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?
OK, thanks.
Jerry