# environ_free

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/environ.c#L56
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-environ_free/

```c
void environ_free(struct environ *env)
```

## Parameters

- `env` (`struct environ *`)

## Called by

- [`client_main`](/en/tmux/3.7c/reference/c-function-client_main/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L341)
- [`cmd_display_popup_exec`](/en/tmux/3.7c/reference/c-function-cmd-display-menu-c-cmd_display_popup_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-menu.c#L514)
- [`cmd_new_window_exec`](/en/tmux/3.7c/reference/c-function-cmd-new-window-c-cmd_new_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-new-window.c#L167)
- [`cmd_respawn_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-respawn-pane-c-cmd_respawn_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-respawn-pane.c#L86)
- [`cmd_respawn_window_exec`](/en/tmux/3.7c/reference/c-function-cmd-respawn-window-c-cmd_respawn_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-respawn-window.c#L85)
- [`cmd_split_window_exec`](/en/tmux/3.7c/reference/c-function-cmd-split-window-c-cmd_split_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-split-window.c#L157)
- [`job_run`](/en/tmux/3.7c/reference/c-function-job_run/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/job.c#L154)
- [`server_client_lost`](/en/tmux/3.7c/reference/c-function-server_client_lost/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L494)
- [`session_free`](/en/tmux/3.7c/reference/c-function-session-c-session_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L187)
- [`spawn_pane`](/en/tmux/3.7c/reference/c-function-spawn_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/spawn.c#L401)

## Referenced declarations

- [`environ`](/en/tmux/3.7c/reference/c-struct-environ/) (struct)
- [`environ_entry.name`](/en/tmux/3.7c/reference/c-struct-environ_entry-name/) (attribute)
- [`environ_entry.value`](/en/tmux/3.7c/reference/c-struct-environ_entry-value/) (attribute)
