diff options
author | Tom Tromey <tromey@adacore.com> | 2022-08-11 09:23:47 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-08-31 11:03:39 -0600 |
commit | 55a6603404099c0b61a5e4613712d3935c2e2bb6 (patch) | |
tree | c2029490053e8fd1f3be46d18c976bd8b0750afe | |
parent | 10d6fc874c0201bd28c57525fc9465f2bcd680ec (diff) | |
download | gdb-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |