change useless ngx_pcalloc() to ngx_pnalloc()
diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs index 94d6a2f..de4d200 100644 --- a/src/http/modules/perl/nginx.xs +++ b/src/http/modules/perl/nginx.xs
@@ -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; }
diff --git a/src/mail/ngx_mail_auth_http_module.c b/src/mail/ngx_mail_auth_http_module.c index 876ac40..d92e2c3 100644 --- a/src/mail/ngx_mail_auth_http_module.c +++ b/src/mail/ngx_mail_auth_http_module.c
@@ -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);