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
+++ 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;
     }
--- 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);