Skip to content
Snippets Groups Projects
Commit 3be76ac7 authored by Craig Tiller's avatar Craig Tiller
Browse files

Fix potential leak

parent f7c87c27
No related branches found
No related tags found
No related merge requests found
...@@ -1150,6 +1150,7 @@ tsi_result tsi_create_ssl_client_handshaker_factory( ...@@ -1150,6 +1150,7 @@ tsi_result tsi_create_ssl_client_handshaker_factory(
if (result != TSI_OK) { if (result != TSI_OK) {
gpr_log(GPR_ERROR, "Building alpn list failed with error %s.", gpr_log(GPR_ERROR, "Building alpn list failed with error %s.",
tsi_result_to_string(result)); tsi_result_to_string(result));
free(alpn_protocol_list);
break; break;
} }
ssl_failed = SSL_CTX_set_alpn_protos(ssl_context, alpn_protocol_list, ssl_failed = SSL_CTX_set_alpn_protos(ssl_context, alpn_protocol_list,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment