From: Tom Tromey Date: Thu, 11 Aug 2022 15:23:47 +0000 (-0600) Subject: Free ui::line_buffer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55a6603404099c0b61a5e4613712d3935c2e2bb6;p=binutils-gdb.git Free ui::line_buffer A ui initializes its line_buffer, but never calls buffer_free on it. This patch fixes the oversight. I found this by inspection. --- diff --git a/gdb/top.c b/gdb/top.c index 07e491440e4..18a447e701b 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -352,6 +352,8 @@ ui::~ui () delete m_gdb_stdin; delete m_gdb_stdout; delete m_gdb_stderr; + + buffer_free (&line_buffer); } /* Open file named NAME for read/write, making sure not to make it the