# server_client_unref

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L390
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-server_client_unref/

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

## Parameters

- `c` (`struct client *`)

## Called by

- [`cmd_if_shell_free`](/en/tmux/3.2a/reference/c-function-cmd-if-shell-c-cmd_if_shell_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L204)
- [`cmd_load_buffer_done`](/en/tmux/3.2a/reference/c-function-cmd-load-buffer-c-cmd_load_buffer_done/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-load-buffer.c#L82)
- [`cmd_run_shell_free`](/en/tmux/3.2a/reference/c-function-cmd-run-shell-c-cmd_run_shell_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-run-shell.c#L267)
- [`cmdq_remove`](/en/tmux/3.2a/reference/c-function-cmd-queue-c-cmdq_remove/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L444)
- [`file_free`](/en/tmux/3.2a/reference/c-function-file_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L140)
- [`format_free`](/en/tmux/3.2a/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3078)
- [`notify_callback`](/en/tmux/3.2a/reference/c-function-notify-c-notify_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L142)
- [`popup_free_cb`](/en/tmux/3.2a/reference/c-function-popup-c-popup_free_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L163)
- [`server_client_lost`](/en/tmux/3.2a/reference/c-function-server_client_lost/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L379)
- [`window_client_free_item`](/en/tmux/3.2a/reference/c-function-window-client-c-window_client_free_item/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L122)
- [`window_pane_input_callback`](/en/tmux/3.2a/reference/c-function-window-c-window_pane_input_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L1540)

## Calls

- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L392)

## Other function references

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

## Referenced declarations

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