|
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:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4 ThunderBrowse/3.3.2 |
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.
smime.p7s
Description: S/MIME Cryptographic Signature
[Prev in Thread] | Current Thread | [Next in Thread] |