Index: src/vortex_frame_factory.c =================================================================== --- src/vortex_frame_factory.c (revision 3129) +++ src/vortex_frame_factory.c (working copy) @@ -409,7 +409,7 @@ * (including Content-Type and Content-Transfer-Encoding * entity headers) and "size" is the payload size. */ - value = realloc (value, header_length + size + 6); + value = axl_realloc (value, header_length + size + 6); /* copy BEEP frame payload */ memcpy (value + header_length, payload, size); @@ -1332,7 +1332,7 @@ /* join payload for both frames */ if (reuse) { /* allocates memory only for the rest of b */ - result->payload = realloc (a->payload, a->size + b->size + 1); + result->payload = axl_realloc (a->payload, a->size + b->size + 1); a->payload = NULL; } else { /* allocates memory to hold both elements a and b */ Index: src/vortex_io.c =================================================================== --- src/vortex_io.c (revision 3129) +++ src/vortex_io.c (working copy) @@ -337,8 +337,8 @@ /* limit reached */ poll->max = max; - poll->set = realloc (poll->set, sizeof (struct pollfd) * poll->max); - poll->connections = realloc (poll->connections, sizeof (VortexConnection *) * poll->max); + poll->set = axl_realloc (poll->set, sizeof (struct pollfd) * poll->max); + poll->connections = axl_realloc (poll->connections, sizeof (VortexConnection *) * poll->max); } /* end if */ /* configure the socket to be watched */ @@ -584,7 +584,7 @@ /* limit reached */ epoll->max = max; - epoll->events = realloc (epoll->events, sizeof (struct epoll_event) * epoll->max); + epoll->events = axl_realloc (epoll->events, sizeof (struct epoll_event) * epoll->max); } /* end if */ /* clear data */