| Summary: | [PATCH] libtsm scroll buffer memory leak when termination | ||
|---|---|---|---|
| Product: | kmscon | Reporter: | Kuang-che Wu <kcwu> |
| Component: | libtsm | Assignee: | David Herrmann <dh.herrmann> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | unspecified | ||
| Hardware: | Other | ||
| OS: | All | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
The scroll buffer is not released when tsm_screen is destroyed in tsm_screen_unref. diff --git a/src/tsm/tsm-screen.c b/src/tsm/tsm-screen.c index 2004d9f..575044a 100644 --- a/src/tsm/tsm-screen.c +++ b/src/tsm/tsm-screen.c @@ -536,6 +536,7 @@ void tsm_screen_unref(struct tsm_screen *con) free(con->alt_lines); free(con->tab_ruler); tsm_symbol_table_unref(con->sym_table); + tsm_screen_clear_sb(con); free(con); }