From acd20228d3d2022526c3fc3163bfeafe884c44a7 Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Tue, 20 Aug 2013 21:33:40 +0100 Subject: [PATCH] replace calloc http/worker.c with quick fit approach. --- src/http/worker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http/worker.c b/src/http/worker.c index b74eb54..6d6293c 100644 --- a/src/http/worker.c +++ b/src/http/worker.c @@ -44,7 +44,7 @@ httpWorkerCtor(void * _this, va_list * params) char * id = va_arg(*params, char *); char cbuf_id[100]; - this->id = malloc(strlen(id) + 1); + this->id = memMalloc(strlen(id) + 1); strcpy(this->id, id); this->val = va_arg(*params, struct randval *); @@ -78,7 +78,7 @@ httpWorkerDtor(void * _this) { HttpWorker this = _this; - FREE(this->id); + MEM_FREE(this->id); delete(this->parser); delete(this->writer);