# cmd_command_prompt_free

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L239
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_free/

```c
static void cmd_command_prompt_free(void *)
```

## Parameters

- `data` (`void *`)

## Called by

- [`cmd_command_prompt_exec`](/en/tmux/3.7c/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L152)

## Calls

- [`args_make_commands_free`](/en/tmux/3.7c/reference/c-function-args_make_commands_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L250)
- [`cmd_free_argv`](/en/tmux/3.7c/reference/c-function-cmd_free_argv/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L249)

## Referenced declarations

- [`cmd_command_prompt_cdata.argc`](/en/tmux/3.7c/reference/c-struct-cmd_command_prompt_cdata-argc/) (attribute)
- [`cmd_command_prompt_cdata.argv`](/en/tmux/3.7c/reference/c-struct-cmd_command_prompt_cdata-argv/) (attribute)
- [`cmd_command_prompt_cdata.count`](/en/tmux/3.7c/reference/c-struct-cmd_command_prompt_cdata-count/) (attribute)
- [`cmd_command_prompt_prompt.input`](/en/tmux/3.7c/reference/c-struct-cmd_command_prompt_prompt-input/) (attribute)
- [`cmd_command_prompt_prompt.prompt`](/en/tmux/3.7c/reference/c-struct-cmd_command_prompt_prompt-prompt/) (attribute)
- [`cmd_command_prompt_cdata.prompts`](/en/tmux/3.7c/reference/c-struct-cmd_command_prompt_cdata-prompts/) (attribute)
- [`cmd_command_prompt_cdata.state`](/en/tmux/3.7c/reference/c-struct-cmd_command_prompt_cdata-state/) (attribute)
