# server_client_unref

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L516
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-server_client_unref/

```c
void server_client_unref(struct client *c)
```

## Parameters

- `c` (`struct client *`)

## Called by

- [`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/arguments.c#L853)
- [`cmd_if_shell_free`](/en/tmux/3.7c/reference/c-function-cmd-if-shell-c-cmd_if_shell_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-if-shell.c#L183)
- [`cmd_load_buffer_done`](/en/tmux/3.7c/reference/c-function-cmd-load-buffer-c-cmd_load_buffer_done/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-load-buffer.c#L82)
- [`cmd_run_shell_free`](/en/tmux/3.7c/reference/c-function-cmd-run-shell-c-cmd_run_shell_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-run-shell.c#L305)
- [`cmdq_remove`](/en/tmux/3.7c/reference/c-function-cmd-queue-c-cmdq_remove/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L457)
- [`file_free`](/en/tmux/3.7c/reference/c-function-file_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L149)
- [`format_free`](/en/tmux/3.7c/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L3855)
- [`notify_callback`](/en/tmux/3.7c/reference/c-function-notify-c-notify_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L161)
- [`popup_free`](/en/tmux/3.7c/reference/c-function-popup-c-popup_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L109)
- [`server_client_lost`](/en/tmux/3.7c/reference/c-function-server_client_lost/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L505)
- [`window_client_free_item`](/en/tmux/3.7c/reference/c-function-window-client-c-window_client_free_item/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-client.c#L112)
- [`window_pane_input_callback`](/en/tmux/3.7c/reference/c-function-window-c-window_pane_input_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1808)

## Calls

- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L518)

## Other function references

- [`server_client_free`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_free/) (function)

## Referenced declarations

- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`client.references`](/en/tmux/3.7c/reference/c-struct-client-references/) (attribute)
