Remove a ui-related memory leak
authorTom Tromey <tromey@adacore.com>
Thu, 11 Aug 2022 19:16:46 +0000 (13:16 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 31 Aug 2022 17:03:40 +0000 (11:03 -0600)
commitb8043d27217ff89abba733476cb71c3656f5722a
treea7efa23160073f021426d105a703536b3205b4aa
parent4311c583a6ac84e880207bf0418872f407557e60
Remove a ui-related memory leak

gdb_setup_readline makes new streams and assigns to the various stream
members of struct ui.  However, these assignments cause the previous
values to leak.  As far as I can, this code is simply unnecessary and
can be removed -- with the exception of the assignment to gdb_stdtarg,
which is not initialized anywhere else.
gdb/event-top.c
gdb/main.c