Fix cli_interp::cli_uiout resource leak found by Coverity
authorGary Benson <gbenson@redhat.com>
Fri, 19 Oct 2018 10:51:41 +0000 (11:51 +0100)
committerGary Benson <gbenson@redhat.com>
Fri, 19 Oct 2018 10:52:33 +0000 (11:52 +0100)
commitba543ca5afafed5bda2db52e8f424f20ff605173
tree7c89bdf8f4ce269480adf75c0e575d5726feba94
parentb04480b11925aff2a1d2fbca30908801fd46c7f3
Fix cli_interp::cli_uiout resource leak found by Coverity

This commit fixes a resource leak found by Coverity, where cli_interp's
constructor creates a new cli_ui_out, but there was no corresponding
destructor to free it.

gdb/ChangeLog:

* cli/cli-interp.c (cli_interp::~cli_interp): New function.
gdb/ChangeLog
gdb/cli/cli-interp.c