[PATCH] Fix resource leak in getcwd()
Sebastian Huber
sebastian.huber@embedded-brains.de
Thu Oct 16 11:19:00 GMT 2014
On 16/10/14 12:36, 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<sebastian.huber@embedded-brains.de>
>
> * libc/unix/getcwd.c (getcwd): Close directory also in case of
> an error.
Sorry, this introduces another resource leak. I will send a new patch soon.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the Newlib
mailing list