Memory leak in opendir()
Sebastian Huber
sebastian.huber@embedded-brains.de
Wed Aug 25 13:27:00 GMT 2010
Hi,
please have a look at the attached patch. Maybe it is beneficial to allocate
the dirp and dirp->dd_buf at once?
Have a nice day!
2010-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libc/posix/opendir.c: Added missing memory free.
--
Sebastian Huber, embedded brains GmbH
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone : +49 89 18 90 80 79-6
Fax : +49 89 18 90 80 79-9
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opendir.patch
Type: text/x-patch
Size: 426 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20100825/5632031d/attachment.bin>
More information about the Newlib
mailing list