# cmdq_free

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L136
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-cmdq_free/

```c
void cmdq_free(struct cmdq_list *queue)
```

## Parameters

- `queue` (`struct cmdq_list *`)

## Called by

- [`server_client_free`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L533)

## Calls

- [`fatalx`](/en/tmux/3.7c/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L139)

## Referenced by

- [`cmd_parse_from_arguments`](/en/tmux/3.7c/reference/c-function-cmd_parse_from_arguments/) (function)

## Referenced declarations

- [`cmdq_list`](/en/tmux/3.7c/reference/c-struct-cmdq_list/) (struct)
- [`cmdq_list.list`](/en/tmux/3.7c/reference/c-struct-cmdq_list-list/) (attribute)
