Abandon malloc and use ngx_palloc