diff options
author | Hope Casey-Allen <hcaseyal@google.com> | 2018-09-06 20:41:06 -0700 |
---|---|---|
committer | Hope Casey-Allen <hcaseyal@google.com> | 2018-09-06 20:41:06 -0700 |
commit | 4181c8cd37d95421a7521b5d7ce382966c13c0c6 (patch) | |
tree | 372d91bb8ade6e7af4f50c21386606218c647f4d /test/core/transport | |
parent | 4099c40d9fc97c70a8aaae74d9af5a64c0113da2 (diff) |
Zero out linked_mdelem when created in test
Diffstat (limited to 'test/core/transport')
-rw-r--r-- | test/core/transport/chttp2/hpack_encoder_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/transport/chttp2/hpack_encoder_test.cc b/test/core/transport/chttp2/hpack_encoder_test.cc index 2a57198ab6..39a7973da9 100644 --- a/test/core/transport/chttp2/hpack_encoder_test.cc +++ b/test/core/transport/chttp2/hpack_encoder_test.cc @@ -59,7 +59,7 @@ static void verify(const verify_params params, const char* expected, size_t i; va_list l; grpc_linked_mdelem* e = - static_cast<grpc_linked_mdelem*>(gpr_malloc(sizeof(*e) * nheaders)); + static_cast<grpc_linked_mdelem*>(gpr_zalloc(sizeof(*e) * nheaders)); grpc_metadata_batch b; grpc_metadata_batch_init(&b); |