]> git.kaiwu.me - nginx.git/commitdiff
change useless ngx_pcalloc() to ngx_pnalloc()
authorIgor Sysoev <igor@sysoev.ru>
Mon, 23 Jun 2008 12:27:03 +0000 (12:27 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 23 Jun 2008 12:27:03 +0000 (12:27 +0000)
src/http/modules/perl/nginx.xs
src/mail/ngx_mail_auth_http_module.c

index 94d6a2fddb1afec1ca8b5c1164698de25b2388a8..de4d20074d68f36220e639aa77a7f9346e0400b3 100644 (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;
     }
index 876ac404eb71065921a4cba6c6850ac85cdec33e..d92e2c303741d0ee9ec90681178ba6db80ce0ba2 100644 (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);