fix error-handling for ngx_calloc_buf