Stream: use ngx_pcalloc() in ngx_stream_proxy_bind().

This commit is contained in:
Roman Arutyunyan 2016-06-22 11:50:02 +03:00
parent 9810fd06cb
commit 82c5230fd1

View File

@ -1713,7 +1713,7 @@ ngx_stream_proxy_bind(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
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) {
return NGX_CONF_ERROR;
}