diff --git a/src/server/server.c b/src/server/server.c index 8f76a3a..f58fe09 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -61,8 +61,8 @@ serverCtor(void * _this, va_list * params) port = va_arg(* params, int); backlog = va_arg(* params, unsigned int); - this->fds = calloc(sizeof(struct pollfd), this->max_fds); - this->conns = calloc(sizeof(struct conns), this->max_fds); + this->fds = memCalloc(sizeof(struct pollfd), this->max_fds); + this->conns = memCalloc(sizeof(struct conns), this->max_fds); this->sock = new(Sock, this->logger, port); flags = fcntl(this->sock->handle, F_GETFL, 0); @@ -111,8 +111,8 @@ serverDtor(void * _this) } } - FREE(this->fds); - FREE(this->conns); + MEM_FREE(this->fds); + MEM_FREE(this->conns); delete(this->sock); delete(this->sockSSL);