[Top][All Lists]

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

[libmicrohttpd] Memory leak?

From: Erik Slagter
Subject: [libmicrohttpd] Memory leak?
Date: Sat, 30 Oct 2010 21:04:50 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4 ThunderBrowse/3.3.2

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.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

reply via email to

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