Browse Source

replace calloc in response.c with quick fit approach

release0.1.5
Georg Hopp 12 years ago
parent
commit
09f92847fb
  1. 4
      src/http/response.c

4
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);
}

Loading…
Cancel
Save