mirror of
https://github.com/nginx/nginx.git
synced 2025-06-17 01:01:28 +08:00
Stream: use ngx_pcalloc() in ngx_stream_proxy_bind().
This commit is contained in:
parent
9810fd06cb
commit
82c5230fd1
@ -1713,7 +1713,7 @@ ngx_stream_proxy_bind(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||||||
return NGX_CONF_OK;
|
return NGX_CONF_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
local = ngx_palloc(cf->pool, sizeof(ngx_stream_upstream_local_t));
|
local = ngx_pcalloc(cf->pool, sizeof(ngx_stream_upstream_local_t));
|
||||||
if (local == NULL) {
|
if (local == NULL) {
|
||||||
return NGX_CONF_ERROR;
|
return NGX_CONF_ERROR;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user