Libev leaks memory

Marc Lehmann schmorp at schmorp.de
Fri May 16 00:45:22 CEST 2008


On Thu, May 15, 2008 at 07:10:36PM +0900, hsanson <hsanson at gmail.com> wrote:
> I am using libev to implement a media server and so far everything is 
> smooth and easy. The only problem that I found is that libev seems to 
> leak memory.

It doesn't:

> Running this program under valgrind will give me errors about 
> unallocated blocks.

Not sure what an unallocated block is, but there is no such thing in the
report you included.

> ==30474==    definitely lost: 0 bytes in 0 blocks.
> ==30474==      possibly lost: 0 bytes in 0 blocks.

no memleaks.

> I tried searching the cause but I am not familiar with libev internals 
> yet. Any tips are appreciated.

In the report you included there is no memory leak. Did you misinterpret
valgrind output?

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      pcg at goof.com
      -=====/_/_//_/\_,_/ /_/\_\



More information about the libev mailing list