# cmd_run_shell_free

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

```c
static void cmd_run_shell_free(void *)
```

## Parameters

- `data` (`void *`)

## Called by

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

## Calls

- [`server_client_unref`](/en/tmux/3.2a/reference/c-function-server_client_unref/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-run-shell.c#L267)
- [`session_remove_ref`](/en/tmux/3.2a/reference/c-function-session_remove_ref/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-run-shell.c#L265)

## Referenced declarations

- [`cmd_run_shell_data.client`](/en/tmux/3.2a/reference/c-struct-cmd_run_shell_data-client/) (attribute)
- [`cmd_run_shell_data.cmd`](/en/tmux/3.2a/reference/c-struct-cmd_run_shell_data-cmd/) (attribute)
- [`cmd_run_shell_data.cwd`](/en/tmux/3.2a/reference/c-struct-cmd_run_shell_data-cwd/) (attribute)
- [`cmd_run_shell_data.s`](/en/tmux/3.2a/reference/c-struct-cmd_run_shell_data-s/) (attribute)
- [`cmd_run_shell_data.timer`](/en/tmux/3.2a/reference/c-struct-cmd_run_shell_data-timer/) (attribute)
