[PATCH v2] Fix resource leak in getcwd()

Corinna Vinschen vinschen@redhat.com
Thu Oct 16 15:01:00 GMT 2014


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20141016/5690ca68/attachment.sig>


More information about the Newlib mailing list