[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: res_nsearch memory leaks
On Mon, 5 Feb 2007 13:29:02 +0100
Love Hörnquist Åstrand <email@example.com> wrote:
> 4 feb 2007 kl. 21.37 skrev Michael B Allen:
> > Hi,
> > I've been doing some testing with valgrind. It looks like the
> > res_nsearch
> > API is leaking memory on my system. From doing a little Googling this
> > is apparently because some OSs do not supply the required res_ndestroy
> > function? Does anyone have further info?
> When I look at theis the last time I thougth it happened on platforms
> with res_ndestroy too ?
> > Also, it seems the below is inconsistent. If res_ndestroy is called in
> > the error condition should it not be called outside the do/while?
> Yes, try 1.57 of lib/roken/resolve.c
Glibc doesn't have res_ndestroy. I applied the change anyway but of
course the leak persisted.
I sent a message to the libc-alpha list with a minimalistic program
and valgrind output. Perhaps they can shed some light on this for glibc
Michael B Allen
PHP Active Directory SSO