diff options
author | 2015-07-12 01:28:05 -0700 | |
---|---|---|
committer | 2015-07-12 01:28:05 -0700 | |
commit | 80e5f044a4f7ee5e1b81a3da8f930d216ca01849 (patch) | |
tree | 7338cfcd41e678c9fd5b54685b709624fa8a3852 /src/core/surface/channel.c | |
parent | d9e7943994b8bbd79b3785bfc4e2166c0652cf24 (diff) |
zero-out channel after creation
Diffstat (limited to 'src/core/surface/channel.c')
-rw-r--r-- | src/core/surface/channel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/surface/channel.c b/src/core/surface/channel.c index eeae3b507c..b7826d4dfc 100644 --- a/src/core/surface/channel.c +++ b/src/core/surface/channel.c @@ -91,6 +91,7 @@ grpc_channel *grpc_channel_create_from_filters( size_t size = sizeof(grpc_channel) + grpc_channel_stack_size(filters, num_filters); grpc_channel *channel = gpr_malloc(size); + memset(channel, 0, sizeof(*channel)); GPR_ASSERT(grpc_is_initialized() && "call grpc_init()"); channel->is_client = is_client; /* decremented by grpc_channel_destroy */ |