Right, I found what was that leak you've found.
It is not-freed context, which did not have time to dealloc after getting
the stop signal.
if you put sleep(1) in main.c, just before returning from main(), it'll fix
this leak.
The proper fix will be when all mg_* functions will the mutex-guarded, to
mg_stop would not return until the serving thread has exited.
On Tue, Dec 2, 2008 at 3:24 PM, Sergey Lyubka <[EMAIL PROTECTED]> wrote:
> Valgrind tests revealed the fact that I was using joinable threads. Changed
> to detached, fix submitted.
> It looks like there is no leaks in the current code.
>
>
> On Tue, Dec 2, 2008 at 2:50 PM, Sergey Lyubka <[EMAIL PROTECTED]> wrote:
>
>> Thanks Antonio!
>> You'd better use new mailing list,
>> http://groups.google.com/group/mongoose-users
>> Also, it is enough to say file version numbers, instead of including them
>> ($Id$ is properly substituted now).
>>
>> I am looking at the problem, running valgrind myself. From your output,
>> I'd say there is no leak there, but let me double check.
>> Note that I checked in couple of fixes in the code already.
>>
>> Thanks again for the early tests, I appreciate it!
>>
>>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
shttpd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shttpd-general