This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/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 interp's
Gary> constructor allocated memory for m_name that interp's destructor did
Gary> not free.
Elsewhere Pedro asked for a different patch subject, so I think that
would apply here as well.
Gary> * interps.h (interp::m_name): Make private and mutable.
Gary> * interps.c (interp::~interp): Free m_name.
This is ok.
Tom