This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/2] Fix resource leak found by Coverity
>>>>> "Gary" == Gary Benson <gbenson@redhat.com> writes:
Gary> This commit fixes a resource leak found by Coverity, where cli_interp's
Gary> constructor creates a new cli_ui_out, but there was no corresponding
Gary> destructor to free it.
Same deal with the patch title.
Gary> * cli/cli-interp.c (cli_interp::~cli_interp): New function.
I wonder if it's possible for the ui-out to be used after the
interpreter is destroyed. A simple check with valgrind would show that,
I think.
This is ok if that succeeds.
Tom