From 09f92847fbb6c80f323fd2849b640fad9c8c21ab Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Tue, 20 Aug 2013 20:50:33 +0100 Subject: [PATCH] replace calloc in response.c with quick fit approach --- src/http/response.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http/response.c b/src/http/response.c index db53354..9a14315 100644 --- a/src/http/response.c +++ b/src/http/response.c @@ -45,7 +45,7 @@ httpResponseCtor(void * _this, va_list * params) this->status = va_arg(* params, unsigned int); reason = va_arg(* params, char *); - this->reason = calloc(1, strlen(reason)+1); + this->reason = memCalloc(1, strlen(reason)+1); strcpy(this->reason, reason); return 0; @@ -57,7 +57,7 @@ httpResponseDtor(void * _this) { HttpResponse this = _this; - FREE(this->reason); + MEM_FREE(this->reason); PARENTCALL(_this, Class, dtor); }