Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

unix: fix memory leak in libev

Not everything that identifies itself as glibc really is glibc.
  • Loading branch information...
bnoordhuis committed Jun 14, 2012
1 parent 4d7f1e1 commit 2c983fb99489383e12b046a5682b5b12b00d9d19
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/unix/ev/ev.c
@@ -608,9 +608,6 @@ ev_syserr (const char *msg)
static void *
ev_realloc_emul (void *ptr, long size)
{
#if __GLIBC__
return realloc (ptr, size);
#else
/* some systems, notably openbsd and darwin, fail to properly
* implement realloc (x, 0) (as required by both ansi c-89 and
* the single unix specification, so work around them here.
@@ -621,7 +618,6 @@ ev_realloc_emul (void *ptr, long size)

free (ptr);
return 0;
#endif
}

static void *(*alloc)(void *ptr, long size) = ev_realloc_emul;

0 comments on commit 2c983fb

Please sign in to comment.
You can’t perform that action at this time.