Memory leak in ev.c

Marc Lehmann schmorp at schmorp.de
Wed Feb 20 18:18:34 CET 2013


On Wed, Feb 20, 2013 at 06:12:50PM +0100, Alexander Klauer <Alexander.Klauer at itwm.fraunhofer.de> wrote:
> 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).

True, but in the important cases, it is required to be equivalent to free
(ptr).

The problem is systems where realloc isn't C89-compliant, which the
documentation explains.

(And is the reason why the default allocator has a workaround).

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



More information about the libev mailing list