projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10d6fc8
)
Free ui::line_buffer
author
Tom Tromey
<tromey@adacore.com>
Thu, 11 Aug 2022 15:23:47 +0000
(09:23 -0600)
committer
Tom Tromey
<tromey@adacore.com>
Wed, 31 Aug 2022 17:03:39 +0000
(11:03 -0600)
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
patch
|
blob
|
history
diff --git
a/gdb/top.c
b/gdb/top.c
index 07e491440e43c892f9809e79df6ce9c49e7d8988..18a447e701bf68eaedfa90b530924498322b2c5a 100644
(file)
--- 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