# grid_free_line

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L252
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-grid-c-grid_free_line/

```c
static void grid_free_line(struct grid *gd, u_int py)
```

## Parameters

- `gd` (`struct grid *`)
- `py` (`u_int`)

## Called by

- [`grid_clear_lines`](/en/tmux/3.2a/reference/c-function-grid_clear_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L652)
- [`grid_free_lines`](/en/tmux/3.2a/reference/c-function-grid-c-grid_free_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L267)
- [`grid_move_lines`](/en/tmux/3.2a/reference/c-function-grid_move_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L681)
- [`grid_remove_history`](/en/tmux/3.2a/reference/c-function-grid_remove_history/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L382)

## Referenced declarations

- [`grid_line.celldata`](/en/tmux/3.2a/reference/c-struct-grid_line-celldata/) (attribute)
- [`grid_line.extddata`](/en/tmux/3.2a/reference/c-struct-grid_line-extddata/) (attribute)
- [`grid`](/en/tmux/3.2a/reference/c-struct-grid/) (struct)
- [`grid.linedata`](/en/tmux/3.2a/reference/c-struct-grid-linedata/) (attribute)
