diff options
author | 2016-11-23 13:33:59 -0800 | |
---|---|---|
committer | 2016-11-23 13:33:59 -0800 | |
commit | 1e5e5ea5ebea55a2fc05060a1cbcdab4d61699cb (patch) | |
tree | d8c89db4f37885335a43c9a8f150802298f67022 /src/core/lib/surface/channel.c | |
parent | 7e1cfe14602902f1c0d3a3fbe91d268c9f4e7487 (diff) |
Fix memory leak
Diffstat (limited to 'src/core/lib/surface/channel.c')
-rw-r--r-- | src/core/lib/surface/channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/surface/channel.c b/src/core/lib/surface/channel.c index d380df4919..963db614f7 100644 --- a/src/core/lib/surface/channel.c +++ b/src/core/lib/surface/channel.c @@ -270,11 +270,11 @@ void *grpc_channel_register_call(grpc_channel *channel, const char *method, rc->path = grpc_mdelem_from_slices( &exec_ctx, GRPC_MDSTR_PATH, - grpc_slice_intern(grpc_slice_from_copied_string(method))); + grpc_slice_intern(grpc_slice_from_static_string(method))); rc->authority = host ? grpc_mdelem_from_slices( &exec_ctx, GRPC_MDSTR_AUTHORITY, - grpc_slice_intern(grpc_slice_from_copied_string(host))) + grpc_slice_intern(grpc_slice_from_static_string(host))) : GRPC_MDNULL; gpr_mu_lock(&channel->registered_call_mu); rc->next = channel->registered_calls; |