aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-11-23 11:38:43 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-11-23 11:38:43 -0800
commit3a6ca82a78bc9b40955a612829d71b8eff808c58 (patch)
treeb460bfeca535e5650a6170a15aff153d71903201
parentcf0a2024faa29bd6f89b7bedd0571be735174f18 (diff)
Fix slice refcounting
-rw-r--r--src/core/lib/surface/channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/surface/channel.c b/src/core/lib/surface/channel.c
index 6f2a88ae68..d380df4919 100644
--- a/src/core/lib/surface/channel.c
+++ b/src/core/lib/surface/channel.c
@@ -126,7 +126,7 @@ grpc_channel *grpc_channel_create(grpc_exec_ctx *exec_ctx, const char *target,
channel->default_authority = grpc_mdelem_from_slices(
exec_ctx, GRPC_MDSTR_AUTHORITY,
grpc_slice_intern(
- grpc_slice_from_copied_string(args->args[i].value.string)));
+ grpc_slice_from_static_string(args->args[i].value.string)));
}
} else if (0 ==
strcmp(args->args[i].key, GRPC_SSL_TARGET_NAME_OVERRIDE_ARG)) {
@@ -143,7 +143,7 @@ grpc_channel *grpc_channel_create(grpc_exec_ctx *exec_ctx, const char *target,
channel->default_authority = grpc_mdelem_from_slices(
exec_ctx, GRPC_MDSTR_AUTHORITY,
grpc_slice_intern(
- grpc_slice_from_copied_string(args->args[i].value.string)));
+ grpc_slice_from_static_string(args->args[i].value.string)));
}
}
} else if (0 == strcmp(args->args[i].key,