Bug 91692 - [PATCH] libtsm scroll buffer memory leak when termination
Summary: [PATCH] libtsm scroll buffer memory leak when termination
Status: NEW
Alias: None
Product: kmscon
Classification: Unclassified
Component: libtsm (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: David Herrmann
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-19 17:13 UTC by Kuang-che Wu
Modified: 2015-08-19 17:13 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Kuang-che Wu 2015-08-19 17:13:24 UTC
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);
 }


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.