memory leak or something wrong

yao liufeng ylfroy at 163.com
Mon Jun 18 07:43:48 CEST 2012


hello,


It's my first time to touch libev, though I think I've missed some points, I failed to find answer by google, can someone help to clarify whether it's a memory leak or something wrong with the code? Thanks!


The issue is that the following snippets keep increasing memory usage on debian linux 6.0/i386, both with libev 4.04 and 4.11:
-----------------------------------------------------------
  while (1)
  {
    struct timespec slp;
    slp.tv_sec = 0;
    slp.tv_nsec = 10*1e6;


    struct ev_loop *evp = ev_loop_new( 0 );
    ev_loop_destroy( evp );
    nanosleep( &slp, NULL );
  }
-----------------------------------------------------------



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20120618/6f66da0c/attachment.html>


More information about the libev mailing list