reviewable/pr8008/r2
Craig Tiller 9 years ago
parent 92e0257840
commit df1d3da924
  1. 6
      src/core/ext/transport/chttp2/transport/chttp2_transport.c
  2. 7
      src/core/lib/surface/server.c

@ -162,6 +162,12 @@ static void destruct_transport(grpc_exec_ctx *exec_ctx,
gpr_free(ping);
}
while (t->write_cb_pool) {
grpc_chttp2_write_cb *next = t->write_cb_pool->next;
gpr_free(t->write_cb_pool);
t->write_cb_pool = next;
}
gpr_free(t->peer_string);
gpr_free(t);
}

@ -446,6 +446,13 @@ static void destroy_channel(grpc_exec_ctx *exec_ctx, channel_data *chand,
grpc_error_free_string(msg);
}
GRPC_ERROR_UNREF(error);
grpc_transport_op *op = grpc_make_transport_op(&chand->finish_destroy_channel_closure);
op->set_accept_stream = true;
grpc_channel_next_op(exec_ctx,
grpc_channel_stack_element(
grpc_channel_get_channel_stack(chand->channel), 0),
op);
}
static void cpstr(char **dest, size_t *capacity, grpc_mdstr *value) {

Loading…
Cancel
Save