# cmd_list_free

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd.c#L606
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmd_list_free/

```c
void cmd_list_free(struct cmd_list *cmdlist)
```

## Parameters

- `cmdlist` (`struct cmd_list *`)

## Called by

- [`client_main`](/en/tmux/3.2a/reference/c-function-client_main/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/client.c#L269)
- [`cmd_if_shell_callback`](/en/tmux/3.2a/reference/c-function-cmd-if-shell-c-cmd_if_shell_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L183)
- [`cmdq_remove`](/en/tmux/3.2a/reference/c-function-cmd-queue-c-cmdq_remove/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L446)
- [`key_bindings_free`](/en/tmux/3.2a/reference/c-function-key-bindings-c-key_bindings_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L94)
- [`key_bindings_init`](/en/tmux/3.2a/reference/c-function-key_bindings_init/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L637)
- [`key_bindings_reset`](/en/tmux/3.2a/reference/c-function-key_bindings_reset/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L270)
- [`load_cfg`](/en/tmux/3.2a/reference/c-function-load_cfg/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cfg.c#L135)
- [`load_cfg_from_buffer`](/en/tmux/3.2a/reference/c-function-load_cfg_from_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cfg.c#L189)
- [`options_value_free`](/en/tmux/3.2a/reference/c-function-options-c-options_value_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L129)
- [`server_client_dispatch_command`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_dispatch_command/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L2177)
- [`window_customize_set_command_callback`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_set_command_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1197)

## Calls

- [`cmd_free`](/en/tmux/3.2a/reference/c-function-cmd_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd.c#L615)

## Referenced by

- [`tty_cmd_erasecharacter`](/en/tmux/3.2a/reference/c-function-tty_cmd_erasecharacter/) (function)

## Referenced declarations

- [`cmd_list`](/en/tmux/3.2a/reference/c-struct-cmd_list/) (struct)
- [`cmd_list.list`](/en/tmux/3.2a/reference/c-struct-cmd_list-list/) (attribute)
- [`cmd.qentry`](/en/tmux/3.2a/reference/c-struct-cmd-qentry/) (attribute)
- [`cmd_list.references`](/en/tmux/3.2a/reference/c-struct-cmd_list-references/) (attribute)
