# file_free

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L129
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-file_free/

```c
void file_free(struct client_file *cf)
```

## Parameters

- `cf` (`struct client_file *`)

## Called by

- [`file_fire_done_cb`](/en/tmux/3.2a/reference/c-function-file-c-file_fire_done_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L154)
- [`file_push_cb`](/en/tmux/3.2a/reference/c-function-file-c-file_push_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L437)
- [`file_read_error_callback`](/en/tmux/3.2a/reference/c-function-file-c-file_read_error_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L659)
- [`file_write_callback`](/en/tmux/3.2a/reference/c-function-file-c-file_write_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L531)
- [`file_write_close`](/en/tmux/3.2a/reference/c-function-file_write_close/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L638)

## Calls

- [`server_client_unref`](/en/tmux/3.2a/reference/c-function-server_client_unref/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L140)

## Referenced declarations

- [`client_file.buffer`](/en/tmux/3.2a/reference/c-struct-client_file-buffer/) (attribute)
- [`client_file.c`](/en/tmux/3.2a/reference/c-struct-client_file-c/) (attribute)
- [`client_file`](/en/tmux/3.2a/reference/c-struct-client_file/) (struct)
- [`client_file.path`](/en/tmux/3.2a/reference/c-struct-client_file-path/) (attribute)
- [`client_file.references`](/en/tmux/3.2a/reference/c-struct-client_file-references/) (attribute)
- [`client_file.tree`](/en/tmux/3.2a/reference/c-struct-client_file-tree/) (attribute)
