Are you sure the memory is leaked? I suspect malloc simply doesn't return the pages to the OS (no sbrk() call to shrink the heap) or you have a minor case of memory fragmentation (totally normal). This is almost certainly the case if you are using 'top' to view memory consumption: a process's heap does not shrink from the peak consumption if you just have a minor reduction in heap size and/or have some fragmentation.
To really analyze leaks, you should use valgrind. If valgrind does not show a problem, your issue is not a memory leak. Happy hacking! Christian On 08/28/14 20:54, Nicolas Mora wrote: > > > I fixed a lot of small problems thanks to your answers, but the memory > leaks are still here with the same conditions: about 20kb is lost each > time I call the 6 main webservices simultaneously with jquery, but no > leak at all when I call each webservice on by one.
