aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2018-01-25 08:31:41 +0100
committerGravatar GitHub <noreply@github.com>2018-01-25 08:31:41 +0100
commit80c9631ad086f20ad49619100df61e7a15e94603 (patch)
tree1bcbdf9c561c9d4a93816a42b1c59ab22cfed49f /src
parent965b11b990745d8e48b81ca5b60456abf95e567a (diff)
parent81b608a0b8e342c9bcec0ad8827e4436701f6f10 (diff)
Merge pull request #14137 from jtattermusch/no_proxy_str_memleak
Fix no_proxy_str memory leak
Diffstat (limited to 'src')
-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;
}
}