change useless ngx_pcalloc() to ngx_pnalloc()

This commit is contained in:
Igor Sysoev 2008-06-23 12:27:03 +00:00
parent 96a1ea9d22
commit f2a1484347
2 changed files with 2 additions and 2 deletions

View File

@ -649,7 +649,7 @@ sendfile(r, filename, offset = -1, bytes = 0)
path.len = ngx_strlen(filename);
path.data = ngx_pcalloc(r->pool, path.len + 1);
path.data = ngx_pnalloc(r->pool, path.len + 1);
if (path.data == NULL) {
XSRETURN_EMPTY;
}

View File

@ -528,7 +528,7 @@ ngx_mail_auth_http_process_headers(ngx_mail_session_t *s,
continue;
}
p = ngx_pcalloc(s->connection->pool, size);
p = ngx_pnalloc(s->connection->pool, size);
if (p == NULL) {
ngx_close_connection(ctx->peer.connection);
ngx_destroy_pool(ctx->pool);