# grid_free_lines

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

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

## Parameters

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

## Called by

- [`grid_destroy`](/en/tmux/latest/reference/c-function-grid_destroy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L335)
- [`grid_duplicate_lines`](/en/tmux/latest/reference/c-function-grid_duplicate_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1192)
- [`grid_trim_history`](/en/tmux/latest/reference/c-function-grid-c-grid_trim_history/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L373)

## Calls

- [`grid_free_line`](/en/tmux/latest/reference/c-function-grid-c-grid_free_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L301)

## Referenced declarations

- [`grid`](/en/tmux/latest/reference/c-struct-grid/) (struct)
