diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-04-13 09:42:10 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-04-13 09:42:10 +0000 |
| commit | 27a205e90fe95de78eddbc46e788881e5cafaf40 (patch) | |
| tree | 53d7763aa64b4e2872073602b397098da3198ab9 /CHANGELOG.md | |
| parent | ci: 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 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a336623..59fa0535 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,7 @@ * OSC 4 with multiple `c;spec` pairs. * Alt+Return to emit "ESC \r". * Trackpad sloooow scrolling to eventually scroll a line. +* Memory leak in terminal reset. ### Security |
