Welcome! Log In Create A New Profile

Advanced

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

Roman Arutyunyan
June 22, 2016 04:52AM
details: http://hg.nginx.org/nginx/rev/4a724d6006ee
branches:
changeset: 6598:4a724d6006ee
user: Roman Arutyunyan <arut@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;
}

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Roman Arutyunyan 418 June 22, 2016 04:52AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 183
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready