Merge pull request #8370 from lyuxuan/fix_handshake_malloc

change from malloc to gpr_malloc
pull/8423/head^2
Craig Tiller 8 years ago committed by GitHub
commit 3c70377db4
  1. 2
      src/core/lib/channel/handshaker.c

@ -183,7 +183,7 @@ void grpc_handshake_manager_do_handshake(
gpr_timespec deadline, grpc_tcp_server_acceptor* acceptor,
grpc_handshaker_done_cb cb, void* user_data) {
grpc_channel_args* args_copy = grpc_channel_args_copy(args);
gpr_slice_buffer* read_buffer = malloc(sizeof(*read_buffer));
gpr_slice_buffer* read_buffer = gpr_malloc(sizeof(*read_buffer));
gpr_slice_buffer_init(read_buffer);
if (mgr->count == 0) {
// No handshakers registered, so we just immediately call the done

Loading…
Cancel
Save