Memory leak in ev.c

Alexander Klauer Alexander.Klauer at
Wed Feb 20 16:42:54 CET 2013


in ev.c, there is the definition

#define ev_free(ptr)    ev_realloc ((ptr), 0)

This causes a memory leak on systems where zero-sized objects are being 
kept track of. Therefore, I suggest this definition to be changed to

#define ev_free(ptr)    free ((ptr))

A patch to this effect has been attached to this message.

Best regards,

Dr. Alexander Klauer
Competence Centre for High Performance Computing

Fraunhofer-Institut für Techno-
und Wirtschaftsmathematik ITWM
Fraunhofer-Platz 1
67663 Kaiserslautern
Tel.: +49 631 31600-4335
Fax : +49 631 31600-5335
Email: Alexander.Klauer at

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libev.patch
Type: text/x-patch
Size: 361 bytes
Desc: not available
URL: <>

More information about the libev mailing list