libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] Memory leak?


From: Christian Grothoff
Subject: Re: [libmicrohttpd] Memory leak?
Date: Sun, 31 Oct 2010 00:18:13 +0200
User-agent: KMail/1.13.2 (Linux/2.6.32-25-generic; KDE/4.4.2; i686; ; )

Dear Erik,

Is this a version from before August 31st 2010 or after (see ChangeLog...).

Other than that, even after a look at the code I cannot explain what you're 
experiencing (a testcase would be very welcome...).

Happy hacking,

Christian

On Saturday, October 30, 2010 09:04:50 pm Erik Slagter wrote:
> I believe I have found a major cause for a memory leak. Or I just do not
> understand the documentation correctly ;-)
> 
> The "user data" pointer that I allocate for a connection in the
> MHD_AccessHandlerCallback function is passed to this function exactly as
> expected and that works.
> 
> In the MHD_RequestCompletedCallback function I get an unrelated pointer
> in con_cls that always points to 0. This way, the previously allocated
> user data never gets freed.
> 
> I've had several instances of my application running in > 12 Gb of
> memory! After restart it was several hundreds of kilobytes like it should.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]