aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/filters/client_channel/http_proxy.cc
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2018-01-23 17:02:02 +0100
committerGravatar Jan Tattermusch <jtattermusch@google.com>2018-01-23 17:27:28 +0100
commit81b608a0b8e342c9bcec0ad8827e4436701f6f10 (patch)
tree4248f65b83c90338c8b1651a056ce5c7cedb64d9 /src/core/ext/filters/client_channel/http_proxy.cc
parent20e7074e4101b4fdbae1764caa952301b38957c4 (diff)
fix no_proxy_str memory leak
Diffstat (limited to 'src/core/ext/filters/client_channel/http_proxy.cc')
-rw-r--r--src/core/ext/filters/client_channel/http_proxy.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/ext/filters/client_channel/http_proxy.cc b/src/core/ext/filters/client_channel/http_proxy.cc
index 037c65822a..7c5f79fb30 100644
--- a/src/core/ext/filters/client_channel/http_proxy.cc
+++ b/src/core/ext/filters/client_channel/http_proxy.cc
@@ -115,6 +115,7 @@ static bool proxy_mapper_map_name(grpc_proxy_mapper* mapper,
"unable to split host and port, not checking no_proxy list for "
"host '%s'",
server_uri);
+ gpr_free(no_proxy_str);
} else {
size_t uri_len = strlen(server_host);
char** no_proxy_hosts;
@@ -139,6 +140,7 @@ static bool proxy_mapper_map_name(grpc_proxy_mapper* mapper,
gpr_free(no_proxy_hosts);
gpr_free(server_host);
gpr_free(server_port);
+ gpr_free(no_proxy_str);
if (!use_proxy) goto no_use_proxy;
}
}