memory leak or something wrong

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


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: <>

More information about the libev mailing list