changeset 6598:4a724d6006ee

Stream: use ngx_pcalloc() in ngx_stream_proxy_bind().
author Roman Arutyunyan <arut@nginx.com>
date Wed, 22 Jun 2016 11:50:02 +0300
parents 0a820872dd4c
children 191e23214dfb
files src/stream/ngx_stream_proxy_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/stream/ngx_stream_proxy_module.c	Mon Jun 20 15:11:50 2016 +0300
+++ b/src/stream/ngx_stream_proxy_module.c	Wed Jun 22 11:50:02 2016 +0300
@@ -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;
     }