Skip to content
Snippets Groups Projects
Commit 80e5f044 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

zero-out channel after creation

parent d9e79439
No related branches found
No related tags found
No related merge requests found
...@@ -91,6 +91,7 @@ grpc_channel *grpc_channel_create_from_filters( ...@@ -91,6 +91,7 @@ grpc_channel *grpc_channel_create_from_filters(
size_t size = size_t size =
sizeof(grpc_channel) + grpc_channel_stack_size(filters, num_filters); sizeof(grpc_channel) + grpc_channel_stack_size(filters, num_filters);
grpc_channel *channel = gpr_malloc(size); grpc_channel *channel = gpr_malloc(size);
memset(channel, 0, sizeof(*channel));
GPR_ASSERT(grpc_is_initialized() && "call grpc_init()"); GPR_ASSERT(grpc_is_initialized() && "call grpc_init()");
channel->is_client = is_client; channel->is_client = is_client;
/* decremented by grpc_channel_destroy */ /* decremented by grpc_channel_destroy */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment