# tty_term_free

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L672
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-tty_term_free/

```c
void tty_term_free(struct tty_term *term)
```

## Parameters

- `term` (`struct tty_term *`)

## Called by

- [`tty_close`](/en/tmux/3.7c/reference/c-function-tty_close/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L514)
- [`tty_term_create`](/en/tmux/3.7c/reference/c-function-tty_term_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L667)

## Calls

- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L676)

## Other function references

- [`tty_term_ncodes`](/en/tmux/3.7c/reference/c-function-tty_term_ncodes/) (function)

## Referenced declarations

- [`tty_term.codes`](/en/tmux/3.7c/reference/c-struct-tty_term-codes/) (attribute)
- [`environ_entry.entry`](/en/tmux/3.7c/reference/c-struct-environ_entry-entry/) (attribute)
- [`tty_term.name`](/en/tmux/3.7c/reference/c-struct-tty_term-name/) (attribute)
- [`tty_term`](/en/tmux/3.7c/reference/c-struct-tty_term/) (struct)
- [`TTYCODE_STRING`](/en/tmux/3.7c/reference/c-enum-tty_code_type-ttycode_string/) (constant)
- [`tty_code.type`](/en/tmux/3.7c/reference/c-struct-tty_code-type/) (attribute)
- [`tty_code.value`](/en/tmux/3.7c/reference/c-struct-tty_code-value/) (attribute)
