aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-08-11 09:23:47 -0600
committerTom Tromey <tromey@adacore.com>2022-08-31 11:03:39 -0600
commit55a6603404099c0b61a5e4613712d3935c2e2bb6 (patch)
treec2029490053e8fd1f3be46d18c976bd8b0750afe
parent10d6fc874c0201bd28c57525fc9465f2bcd680ec (diff)
downloadgdb-55a6603404099c0b61a5e4613712d3935c2e2bb6.zip
gdb-55a6603404099c0b61a5e4613712d3935c2e2bb6.tar.gz
gdb-55a6603404099c0b61a5e4613712d3935c2e2bb6.tar.bz2
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.
-rw-r--r--gdb/top.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 07e4914..18a447e 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