static void connection_destroy(grpc_exec_ctx *exec_ctx, void *arg, int success) { grpc_connected_subchannel *c = arg; grpc_channel_stack_destroy(exec_ctx, CHANNEL_STACK_FROM_CONNECTION(c)); gpr_free(c); }
static void connection_destroy(connection *c) { GPR_ASSERT(c->refs == 0); grpc_channel_stack_destroy(CHANNEL_STACK_FROM_CONNECTION(c)); gpr_free(c); }