This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: memory leak in res_nsend()


On Mon, Oct 24, 2005 at 10:04:04PM +0400, Antony Dovgal wrote:
> __libc_thread_freeres(void) frees global _res, while I need to free 
> resources associated with my local __res_state struct.
> I honestly do not understand how can valgrind help me with that calling 
> __libc_thread_freeres().

By calling it in the context of any thread that hasn't exited, to free
that thread's resources?

-- 
Daniel Jacobowitz
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]