# job_free

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

```c
void job_free(struct job *job)
```

## Parameters

- `job` (`struct job *`)

## Called by

- [`format_job_get`](/en/tmux/3.7c/reference/c-function-format-c-format_job_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L418)
- [`format_job_tidy`](/en/tmux/3.7c/reference/c-function-format-c-format_job_tidy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L456)
- [`job_check_died`](/en/tmux/3.7c/reference/c-function-job_check_died/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/job.c#L381)
- [`job_error_callback`](/en/tmux/3.7c/reference/c-function-job-c-job_error_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/job.c#L349)
- [`popup_free`](/en/tmux/3.7c/reference/c-function-popup-c-popup_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L112)

## Calls

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

## Referenced declarations

- [`job.cmd`](/en/tmux/3.7c/reference/c-struct-job-cmd/) (attribute)
- [`job.data`](/en/tmux/3.7c/reference/c-struct-job-data/) (attribute)
- [`job.event`](/en/tmux/3.7c/reference/c-struct-job-event/) (attribute)
- [`job.fd`](/en/tmux/3.7c/reference/c-struct-job-fd/) (attribute)
- [`job.freecb`](/en/tmux/3.7c/reference/c-struct-job-freecb/) (attribute)
- [`job`](/en/tmux/3.7c/reference/c-struct-job/) (struct)
- [`job.pid`](/en/tmux/3.7c/reference/c-struct-job-pid/) (attribute)
