# cmd_free

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

```c
void cmd_free(struct cmd *cmd)
```

## Parameters

- `cmd` (`struct cmd *`)

## Called by

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

## Calls

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

## Referenced declarations

- [`cmd.args`](/en/tmux/3.7c/reference/c-struct-cmd-args/) (attribute)
- [`cmd`](/en/tmux/3.7c/reference/c-struct-cmd/) (struct)
- [`cmd.file`](/en/tmux/3.7c/reference/c-struct-cmd-file/) (attribute)
