dlopen/dlclose caused memory leak?
czy
xjtuse at hotmail.com
Wed Mar 11 12:37:56 UTC 2009
Do you mean the change of dl_cleanup as below:
http://sources.busybox.net/index.py/trunk/uClibc/ldso/libdl/libdl.c?r1=23552&r2=23853&diff_format=h
Thanks,
> To: xjtuse at hotmail.com
> CC: uclibc at uclibc.org
> Subject: Re: dlopen/dlclose caused memory leak?
> From: Joakim.Tjernlund at transmode.se
> Date: Wed, 11 Mar 2009 13:06:47 +0100
>
> > Hi,
> >
> > I used uclibc-0.9.29,
> >
> > /*dltest.c*/
> > > #include <stdio.h>
> > > #include <dlfcn.h>
> > >
> > > #define MYLIB "/flash/lib/libdev.so"
> > >
> > > int main (void){
> > > void *handle;
> > > while (1){
> > > handle = dlopen (MYLIB, RTLD_LAZY);
> > > if (!handle){
> > > fputs (dlerror(), stderr);
> > > exit (1);
> > > }
> > > dlclose (handle);
> > > }
> > > }
> > /*dltest.c*/
> >
> > Pls comment,
> > Thanks,
> > czy
>
> I remember plugging a memory leak in this area, probably
> after 0.9.29, try a newer uClibc version.
>
> Jocke
_________________________________________________________________
梦幻K图,百变造型,让你的照片与众不同,快来MClub试试吧!
http://club.msn.cn/?form=3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20090311/5675935d/attachment.htm>
More information about the uClibc
mailing list