# format_free

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

```c
void format_free(struct format_tree *ft)
```

## Parameters

- `ft` (`struct format_tree *`)

## Called by

- [`cmd_display_message_exec`](/en/tmux/3.2a/reference/c-function-cmd-display-message-c-cmd_display_message_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-message.c#L141)
- [`cmd_list_buffers_exec`](/en/tmux/3.2a/reference/c-function-cmd-list-buffers-c-cmd_list_buffers_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-buffers.c#L77)
- [`cmd_list_clients_exec`](/en/tmux/3.2a/reference/c-function-cmd-list-clients-c-cmd_list_clients_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-clients.c#L84)
- [`cmd_list_keys_commands`](/en/tmux/3.2a/reference/c-function-cmd-list-keys-c-cmd_list_keys_commands/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-keys.c#L365)
- [`cmd_list_panes_window`](/en/tmux/3.2a/reference/c-function-cmd-list-panes-c-cmd_list_panes_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-panes.c#L145)
- [`cmd_list_sessions_exec`](/en/tmux/3.2a/reference/c-function-cmd-list-sessions-c-cmd_list_sessions_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-sessions.c#L85)
- [`cmd_list_windows_session`](/en/tmux/3.2a/reference/c-function-cmd-list-windows-c-cmd_list_windows_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-windows.c#L127)
- [`cmd_pipe_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-pipe-pane-c-cmd_pipe_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-pipe-pane.c#L115)
- [`cmd_show_messages_exec`](/en/tmux/3.2a/reference/c-function-cmd-show-messages-c-cmd_show_messages_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-show-messages.c#L104)
- [`cmdq_free_state`](/en/tmux/3.2a/reference/c-function-cmdq_free_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L250)
- [`control_check_subs_all_panes`](/en/tmux/3.2a/reference/c-function-control-c-control_check_subs_all_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L919)
- [`control_check_subs_all_windows`](/en/tmux/3.2a/reference/c-function-control-c-control_check_subs_all_windows/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L1008)
- [`control_check_subs_pane`](/en/tmux/3.2a/reference/c-function-control-c-control_check_subs_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L877)
- [`control_check_subs_session`](/en/tmux/3.2a/reference/c-function-control-c-control_check_subs_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L841)
- [`control_check_subs_window`](/en/tmux/3.2a/reference/c-function-control-c-control_check_subs_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L967)
- [`format_loop_panes`](/en/tmux/3.2a/reference/c-function-format-c-format_loop_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3856)
- [`format_loop_sessions`](/en/tmux/3.2a/reference/c-function-format-c-format_loop_sessions/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3729)
- [`format_loop_windows`](/en/tmux/3.2a/reference/c-function-format-c-format_loop_windows/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3804)
- [`format_single`](/en/tmux/3.2a/reference/c-function-format_single/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4629)
- [`format_window_name`](/en/tmux/3.2a/reference/c-function-names-c-format_window_name/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/names.c#L137)
- [`screen_redraw_draw_borders_style`](/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_draw_borders_style/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L672)
- [`screen_redraw_make_pane_status`](/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_make_pane_status/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L455)
- [`server_client_set_title`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_set_title/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L2012)
- [`status_message_redraw`](/en/tmux/3.2a/reference/c-function-status_message_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L522)
- [`status_prompt_redraw`](/en/tmux/3.2a/reference/c-function-status_prompt_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L682)
- [`status_prompt_set`](/en/tmux/3.2a/reference/c-function-status_prompt_set/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L597)
- [`status_prompt_update`](/en/tmux/3.2a/reference/c-function-status_prompt_update/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L652)
- [`status_redraw`](/en/tmux/3.2a/reference/c-function-status_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L419)
- [`style_add`](/en/tmux/3.2a/reference/c-function-style_add/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/style.c#L293)
- [`window_buffer_build`](/en/tmux/3.2a/reference/c-function-window-buffer-c-window_buffer_build/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L210)
- [`window_buffer_get_key`](/en/tmux/3.2a/reference/c-function-window-buffer-c-window_buffer_get_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L322)
- [`window_client_get_key`](/en/tmux/3.2a/reference/c-function-window-client-c-window_client_get_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L283)
- [`window_customize_build`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_build/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L570)
- [`window_customize_build_keys`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_build_keys/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L522)
- [`window_customize_draw_option`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_draw_option/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L834)
- [`window_tree_get_key`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_get_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L896)

## Calls

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

## Referenced declarations

- [`format_tree.client`](/en/tmux/3.2a/reference/c-struct-format_tree-client/) (attribute)
- [`format_tree`](/en/tmux/3.2a/reference/c-struct-format_tree/) (struct)
- [`format_entry.key`](/en/tmux/3.2a/reference/c-struct-format_entry-key/) (attribute)
- [`format_tree.tree`](/en/tmux/3.2a/reference/c-struct-format_tree-tree/) (attribute)
- [`format_entry.value`](/en/tmux/3.2a/reference/c-struct-format_entry-value/) (attribute)
