# control_free_block

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

```c
static void control_free_block(struct control_state *cs, struct control_block *cb)
```

## Parameters

- `cs` (`struct control_state *`)
- `cb` (`struct control_block *`)

## Called by

- [`control_discard_pane`](/en/tmux/latest/reference/c-function-control-c-control_discard_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L276)
- [`control_flush_all_blocks`](/en/tmux/latest/reference/c-function-control-c-control_flush_all_blocks/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L609)
- [`control_stop`](/en/tmux/latest/reference/c-function-control_stop/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L851)
- [`control_write_pending`](/en/tmux/latest/reference/c-function-control-c-control_write_pending/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L682)

## Referenced declarations

- [`control_state.all_blocks`](/en/tmux/latest/reference/c-struct-control_state-all_blocks/) (attribute)
- [`control_block`](/en/tmux/latest/reference/c-struct-control_block/) (struct)
- [`control_state`](/en/tmux/latest/reference/c-struct-control_state/) (struct)
- [`control_block.line`](/en/tmux/latest/reference/c-struct-control_block-line/) (attribute)
