aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-04-13 09:42:10 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-04-13 09:42:10 +0000
commit27a205e90fe95de78eddbc46e788881e5cafaf40 (patch)
tree53d7763aa64b4e2872073602b397098da3198ab9 /input.c
parentci: initial FreeBSD build manifest (diff)
term: reset: plug memory leak
In reset, we allocated new rows for all the currently visible lines. We did **not** however, free the 'old' rows. Fix by not explicitly allocating new rows, but instead allocating uninitialized rows when needed, and then explicitly erasing the row. If there already was a row allocated, it is simply erased. If there wasn't, the a new line is malloc:ed, and then erased.
Diffstat (limited to 'input.c')
0 files changed, 0 insertions, 0 deletions