aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/util
diff options
context:
space:
mode:
authorGravatar Nathan Herring <nherring@google.com>2018-08-21 23:16:22 +0200
committerGravatar Nathan Herring <nherring@google.com>2018-08-21 23:16:22 +0200
commit147826a909cc60d963c34b919417ce7a888e29ce (patch)
treeabe01ae132232dbbc1b532bbc70c851d06b344d7 /test/cpp/util
parentc173b196d66430d96cd52402707bd874fc2931db (diff)
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 a78027e5aa..7e05ac2d53 100644
--- a/test/cpp/util/cli_credentials.cc
+++ b/test/cpp/util/cli_credentials.cc
@@ -86,7 +86,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(cert_slice);
+ grpc_slice_unref_internal(cert_slice);
}
if (!FLAGS_ssl_client_key.empty()) {
grpc_slice key_slice = grpc_empty_slice();
@@ -95,7 +95,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(key_slice);
+ grpc_slice_unref_internal(key_slice);
}
return grpc::SslCredentials(ssl_creds_options);
} else if (FLAGS_channel_creds_type.compare("gdc") == 0) {