details:   http://hg.nginx.org/nginx/rev/4a724d6006ee
branches:  
changeset: 6598:4a724d6006ee
user:      Roman Arutyunyan <[email protected]>
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;
     }

_______________________________________________
nginx-devel mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to