# paste_free

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

```c
void paste_free(struct paste_buffer *pb)
```

## Parameters

- `pb` (`struct paste_buffer *`)

## Called by

- [`cmd_paste_buffer_exec`](/en/tmux/3.2a/reference/c-function-cmd-paste-buffer-c-cmd_paste_buffer_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-paste-buffer.c#L105)
- [`cmd_set_buffer_exec`](/en/tmux/3.2a/reference/c-function-cmd-set-buffer-c-cmd_set_buffer_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-set-buffer.c#L78)
- [`paste_add`](/en/tmux/3.2a/reference/c-function-paste_add/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/paste.c#L178)
- [`paste_set`](/en/tmux/3.2a/reference/c-function-paste_set/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/paste.c#L291)
- [`window_buffer_do_delete`](/en/tmux/3.2a/reference/c-function-window-buffer-c-window_buffer_do_delete/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L414)

## Referenced declarations

- [`paste_buffer.automatic`](/en/tmux/3.2a/reference/c-struct-paste_buffer-automatic/) (attribute)
- [`paste_buffer.data`](/en/tmux/3.2a/reference/c-struct-paste_buffer-data/) (attribute)
- [`paste_buffer.name`](/en/tmux/3.2a/reference/c-struct-paste_buffer-name/) (attribute)
- [`paste_buffer`](/en/tmux/3.2a/reference/c-struct-paste_buffer/) (struct)
- [`paste_by_name`](/en/tmux/3.2a/reference/c-variable-paste-c-paste_by_name/) (attribute)
- [`paste_by_time`](/en/tmux/3.2a/reference/c-variable-paste-c-paste_by_time/) (attribute)
- [`paste_num_automatic`](/en/tmux/3.2a/reference/c-variable-paste-c-paste_num_automatic/) (attribute)
