diff options
author | 2018-09-10 20:34:49 -0700 | |
---|---|---|
committer | 2018-09-10 22:19:40 -0700 | |
commit | fbe594beeb0e065bc357674bd99c3a3161795341 (patch) | |
tree | a96a58f796cb6878152cfbf70fb9d9b5e32b9944 /test/core/transport/chttp2 | |
parent | 009d828341a272e05401daf32907d8f400b19a90 (diff) |
Much cleaner approach that should address code review comments as well
Diffstat (limited to 'test/core/transport/chttp2')
-rw-r--r-- | test/core/transport/chttp2/hpack_encoder_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/transport/chttp2/hpack_encoder_test.cc b/test/core/transport/chttp2/hpack_encoder_test.cc index ab59ee9c5b..2a57198ab6 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_zalloc(sizeof(*e) * nheaders)); + static_cast<grpc_linked_mdelem*>(gpr_malloc(sizeof(*e) * nheaders)); grpc_metadata_batch b; grpc_metadata_batch_init(&b); @@ -205,7 +205,7 @@ static void verify_table_size_change_match_elem_size(const char* key, size_t elem_size = grpc_mdelem_get_size_in_hpack_table(elem, use_true_binary); size_t initial_table_size = g_compressor.table_size; grpc_linked_mdelem* e = - static_cast<grpc_linked_mdelem*>(gpr_zalloc(sizeof(*e))); + static_cast<grpc_linked_mdelem*>(gpr_malloc(sizeof(*e))); grpc_metadata_batch b; grpc_metadata_batch_init(&b); e[0].md = elem; |