# cmd_list_free

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

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

## Parameters

- `cmdlist` (`struct cmd_list *`)

## Called by

- [`args_free_value`](/en/tmux/latest/reference/c-function-args_free_value/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L409)
- [`args_make_commands_free`](/en/tmux/latest/reference/c-function-args_make_commands_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L851)
- [`client_main`](/en/tmux/latest/reference/c-function-client_main/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L268)
- [`cmd_confirm_before_exec`](/en/tmux/latest/reference/c-function-cmd-confirm-before-c-cmd_confirm_before_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L95)
- [`cmd_confirm_before_free`](/en/tmux/latest/reference/c-function-cmd-confirm-before-c-cmd_confirm_before_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L162)
- [`cmdq_remove`](/en/tmux/latest/reference/c-function-cmd-queue-c-cmdq_remove/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L459)
- [`key_bindings_free`](/en/tmux/latest/reference/c-function-key-bindings-c-key_bindings_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/key-bindings.c#L100)
- [`key_bindings_init`](/en/tmux/latest/reference/c-function-key_bindings_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/key-bindings.c#L678)
- [`key_bindings_reset`](/en/tmux/latest/reference/c-function-key_bindings_reset/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/key-bindings.c#L281)
- [`load_cfg`](/en/tmux/latest/reference/c-function-load_cfg/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L131)
- [`load_cfg_from_buffer`](/en/tmux/latest/reference/c-function-load_cfg_from_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L183)
- [`options_set_command`](/en/tmux/latest/reference/c-function-options_set_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L845)
- [`options_value_free`](/en/tmux/latest/reference/c-function-options-c-options_value_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L129)
- [`server_client_dispatch_command`](/en/tmux/latest/reference/c-function-server-client-c-server_client_dispatch_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2413)
- [`window_customize_set_command_callback`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_set_command_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1216)

## Calls

- [`cmd_free`](/en/tmux/latest/reference/c-function-cmd_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L644)

## Referenced declarations

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