From 55a6603404099c0b61a5e4613712d3935c2e2bb6 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 11 Aug 2022 09:23:47 -0600 Subject: [PATCH] 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. --- gdb/top.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.30.2