Mercurial > hg > nginx
changeset 2061:b0a1c84725cf
change useless ngx_pcalloc() to ngx_pnalloc()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 23 Jun 2008 12:27:03 +0000 |
parents | 7f936e479fda |
children | 90312b616162 |
files | src/http/modules/perl/nginx.xs src/mail/ngx_mail_auth_http_module.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/perl/nginx.xs Mon Jun 23 10:50:18 2008 +0000 +++ b/src/http/modules/perl/nginx.xs Mon Jun 23 12:27:03 2008 +0000 @@ -649,7 +649,7 @@ 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; }
--- a/src/mail/ngx_mail_auth_http_module.c Mon Jun 23 10:50:18 2008 +0000 +++ b/src/mail/ngx_mail_auth_http_module.c Mon Jun 23 12:27:03 2008 +0000 @@ -528,7 +528,7 @@ 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);