# control_discard

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L819
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-control_discard/

```c
void control_discard(struct client *c)
```

## Parameters

- `c` (`struct client *`)

## Called by

- [`control_check_age`](/en/tmux/3.7c/reference/c-function-control-c-control_check_age/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L467)
- [`server_client_check_exit`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_check_exit/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1922)

## Calls

- [`control_discard_pane`](/en/tmux/3.7c/reference/c-function-control-c-control_discard_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L825)

## Referenced declarations

- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`client.control_state`](/en/tmux/3.7c/reference/c-struct-client-control_state/) (attribute)
- [`control_state.panes`](/en/tmux/3.7c/reference/c-struct-control_state-panes/) (attribute)
- [`control_state.read_event`](/en/tmux/3.7c/reference/c-struct-control_state-read_event/) (attribute)
