dlopen/dlclose caused memory leak?

Joakim Tjernlund Joakim.Tjernlund at transmode.se
Wed Mar 11 12:47:50 UTC 2009


No, I think it was this one:
http://sources.busybox.net/index.py/trunk/uClibc/ldso/ldso/dl-elf.c?r1=14417&r2=14840

czy <xjtuse at hotmail.com> wrote on 11/03/2009 13:37:56:
> 
> 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
> 
> 把MSN装进手机,更多聊天乐趣等你挖掘! 立刻下载!


More information about the uClibc mailing list