# HG changeset patch # User Igor Sysoev # Date 1214224023 0 # Node ID b0a1c84725cf98be1057ec891e18b73059a82bdb # Parent 7f936e479fda149415f65b5c0ddf71cffbd52ee0 change useless ngx_pcalloc() to ngx_pnalloc() diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs --- a/src/http/modules/perl/nginx.xs +++ b/src/http/modules/perl/nginx.xs @@ -649,7 +649,7 @@ sendfile(r, filename, offset = -1, bytes 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; } diff --git a/src/mail/ngx_mail_auth_http_module.c b/src/mail/ngx_mail_auth_http_module.c --- a/src/mail/ngx_mail_auth_http_module.c +++ b/src/mail/ngx_mail_auth_http_module.c @@ -528,7 +528,7 @@ ngx_mail_auth_http_process_headers(ngx_m 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);