[nginx] Stream: use ngx_pcalloc() in ngx_stream_proxy_bind().

Roman Arutyunyan arut at nginx.com
Wed Jun 22 08:50:35 UTC 2016


details:   http://hg.nginx.org/nginx/rev/4a724d6006ee
branches:  
changeset: 6598:4a724d6006ee
user:      Roman Arutyunyan <arut at nginx.com>
date:      Wed Jun 22 11:50:02 2016 +0300
description:
Stream: use ngx_pcalloc() in ngx_stream_proxy_bind().

diffstat:

 src/stream/ngx_stream_proxy_module.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 0a820872dd4c -r 4a724d6006ee src/stream/ngx_stream_proxy_module.c
--- 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 @@ ngx_stream_proxy_bind(ngx_conf_t *cf, ng
         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;
     }



More information about the nginx-devel mailing list