Memory leak in ev.c
Alexander Klauer
Alexander.Klauer at itwm.fraunhofer.de
Wed Feb 20 18:12:50 CET 2013
Hi Marc,
On 02/20/2013 06:04 PM, Marc Lehmann wrote:
> libev doesn't run on systems that don't implement free(0) (which ones,
> anyway?) - maybe you are meaning something else? Also, there is no
> such #ifdef in ev_realloc_emul anymore - you are looking at old code
> it seems.
yep, I see it now, it's fixed in your CVS. I was using the latest
release, 4.11. Again, sorry for the noise.
So, there is nothing further to be done except possibly change the
documentation of ev_set_allocator() because realloc(ptr, 0) is not
required by C89 to have the same semantics as free(ptr) (see other thread).
Best regards,
Alexander
More information about the libev
mailing list