This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] Fix resource leak in getcwd()


On Oct 16 13:37, Sebastian Huber wrote:
> The fix is similar to the code in the current FreeBSD sources which
> fixed this bug in 1997.
> 
> newlib/ChangeLog
> 2014-10-16  Sebastian Huber  <...>
> 
> 	* libc/unix/getcwd.c (getcwd): Close directory also in case of
> 	an error.

Patch applied.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: pgpLTL8zxDmNi.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]