# colour_palette_free

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

```c
void colour_palette_free(struct colour_palette *p)
```

## Parameters

- `p` (`struct colour_palette *`)

## Called by

- [`popup_free`](/en/tmux/latest/reference/c-function-popup-c-popup_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L119)
- [`window_pane_destroy`](/en/tmux/latest/reference/c-function-window-c-window_pane_destroy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1133)

## Referenced declarations

- [`colour_palette`](/en/tmux/latest/reference/c-struct-colour_palette/) (struct)
- [`colour_palette.default_palette`](/en/tmux/latest/reference/c-struct-colour_palette-default_palette/) (attribute)
- [`colour_palette.palette`](/en/tmux/latest/reference/c-struct-colour_palette-palette/) (attribute)
