# file_free

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L138
- **Page:** https://libtmux.org/en/tmux/3.7c/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.7c/reference/c-function-file-c-file_fire_done_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L164)
- [`file_push_cb`](/en/tmux/3.7c/reference/c-function-file-c-file_push_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L469)
- [`file_read_error_callback`](/en/tmux/3.7c/reference/c-function-file-c-file_read_error_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L693)
- [`file_write_callback`](/en/tmux/3.7c/reference/c-function-file-c-file_write_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L563)
- [`file_write_close`](/en/tmux/3.7c/reference/c-function-file_write_close/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L672)

## Calls

- [`server_client_unref`](/en/tmux/3.7c/reference/c-function-server_client_unref/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L149)

## Referenced declarations

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