commit | 8b0c6da2050575fa2f7efef6deeedb0cbfc6b29a | [log] [tgz] |
---|---|---|
author | Roman Arutyunyan <arut@nginx.com> | Wed Jun 22 11:50:02 2016 +0300 |
committer | Roman Arutyunyan <arut@nginx.com> | Wed Jun 22 11:50:02 2016 +0300 |
tree | 216fecc13f7ba145df1db85f2e1b16416f7de356 | |
parent | 940da3a5dbf52eb77ea92645fc22ef03d9d084de [diff] |
Stream: use ngx_pcalloc() in ngx_stream_proxy_bind().
diff --git a/src/stream/ngx_stream_proxy_module.c b/src/stream/ngx_stream_proxy_module.c index 8c37d00..0c330f4 100644 --- a/src/stream/ngx_stream_proxy_module.c +++ b/src/stream/ngx_stream_proxy_module.c
@@ -1713,7 +1713,7 @@ 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; }