aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/util
diff options
context:
space:
mode:
authorGravatar Nathan Herring <nherring@google.com>2018-09-11 09:32:06 +0200
committerGravatar Nathan Herring <nherring@google.com>2018-09-11 09:32:06 +0200
commit916a686ef3b69a9036ed0423c62a2ce1c53ef062 (patch)
tree1857f593a7ec5c8cd92664ab1dbafce9bd2a34ef /test/cpp/util
parent2d8c682cac54ff2f6024a4b629b1f12be41fca9e (diff)
Revert "Use grpc_slice_unref_internal"
Diffstat (limited to 'test/cpp/util')
-rw-r--r--test/cpp/util/cli_credentials.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/util/cli_credentials.cc b/test/cpp/util/cli_credentials.cc
index d48b94ad85..1125b2d945 100644
--- a/test/cpp/util/cli_credentials.cc
+++ b/test/cpp/util/cli_credentials.cc
@@ -121,7 +121,7 @@ CliCredentials::GetChannelCredentials() const {
grpc_load_file(FLAGS_ssl_client_cert.c_str(), 1, &cert_slice));
ssl_creds_options.pem_cert_chain =
grpc::StringFromCopiedSlice(cert_slice);
- grpc_slice_unref_internal(cert_slice);
+ grpc_slice_unref(cert_slice);
}
if (!FLAGS_ssl_client_key.empty()) {
grpc_slice key_slice = grpc_empty_slice();
@@ -130,7 +130,7 @@ CliCredentials::GetChannelCredentials() const {
grpc_load_file(FLAGS_ssl_client_key.c_str(), 1, &key_slice));
ssl_creds_options.pem_private_key =
grpc::StringFromCopiedSlice(key_slice);
- grpc_slice_unref_internal(key_slice);
+ grpc_slice_unref(key_slice);
}
return grpc::SslCredentials(ssl_creds_options);
} else if (FLAGS_channel_creds_type.compare("gdc") == 0) {