aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/surface/channel.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-01-29 12:27:07 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-01-29 12:27:07 -0800
commit8cfd624c994db528cc462345116ee057898a7fe5 (patch)
tree8f07533d7a3125e461e6992cad429c1fbe660d5f /src/core/surface/channel.c
parentba7a43fbd1995cce7fbcba710834004ba17781b0 (diff)
Small cleanup
Diffstat (limited to 'src/core/surface/channel.c')
-rw-r--r--src/core/surface/channel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/surface/channel.c b/src/core/surface/channel.c
index e47fea431f..c33ea923e8 100644
--- a/src/core/surface/channel.c
+++ b/src/core/surface/channel.c
@@ -92,9 +92,8 @@ grpc_call *grpc_channel_create_call_old(grpc_channel *channel,
/* Add :path and :authority headers. */
/* TODO(klempner): Consider optimizing this by stashing mdelems for common
values of method and host. */
- grpc_mdstr_ref(channel->path_string);
path_mdelem = grpc_mdelem_from_metadata_strings(
- channel->metadata_context, channel->path_string,
+ channel->metadata_context, grpc_mdstr_ref(channel->path_string),
grpc_mdstr_from_string(channel->metadata_context, method));
op.type = GRPC_SEND_METADATA;
op.dir = GRPC_CALL_DOWN;