# menu_free

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L161
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-menu_free/

```c
void menu_free(struct menu *menu)
```

## Parameters

- `menu` (`struct menu *`)

## Called by

- [`cmd_display_menu_exec`](/en/tmux/latest/reference/c-function-cmd-display-menu-c-cmd_display_menu_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-menu.c#L377)
- [`menu_free_cb`](/en/tmux/latest/reference/c-function-menu_free_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L304)
- [`mode_tree_display_menu`](/en/tmux/latest/reference/c-function-mode-tree-c-mode_tree_display_menu/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L1162)
- [`status_prompt_complete_list_menu`](/en/tmux/latest/reference/c-function-status-c-status_prompt_complete_list_menu/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L2012)
- [`status_prompt_complete_window_menu`](/en/tmux/latest/reference/c-function-status-c-status_prompt_complete_window_menu/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L2074)

## Referenced declarations

- [`menu_item.command`](/en/tmux/latest/reference/c-struct-menu_item-command/) (attribute)
- [`menu.count`](/en/tmux/latest/reference/c-struct-menu-count/) (attribute)
- [`menu.items`](/en/tmux/latest/reference/c-struct-menu-items/) (attribute)
- [`menu`](/en/tmux/latest/reference/c-struct-menu/) (struct)
- [`menu_item.name`](/en/tmux/latest/reference/c-struct-menu_item-name/) (attribute)
- [`menu.title`](/en/tmux/latest/reference/c-struct-menu-title/) (attribute)
