This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Memory leak in opendir()
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Wed, 25 Aug 2010 12:46:37 +0200
- Subject: Re: Memory leak in opendir()
- References: <4C74DBD3.8090206@embedded-brains.de>
- Reply-to: newlib at sourceware dot org
On Aug 25 11:01, Sebastian Huber wrote:
> 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.
Thanks for catching. Patch applied.
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat