diff options
author | Gary Benson <gbenson@redhat.com> | 2018-10-11 10:19:26 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2018-10-11 10:19:26 +0100 |
commit | fbe61a3661b083a666e6550b3b0c2de364e6d4a6 (patch) | |
tree | 081ad1be61ca54cdef6de1de3641afb91062c86a /binutils | |
parent | a9597defaf39e2277c4c5ff510e708f226f54fbc (diff) | |
download | gdb-fbe61a3661b083a666e6550b3b0c2de364e6d4a6.zip gdb-fbe61a3661b083a666e6550b3b0c2de364e6d4a6.tar.gz gdb-fbe61a3661b083a666e6550b3b0c2de364e6d4a6.tar.bz2 |
Fix interp::m_name resource leak found by Coverity
This commit fixes a resource leak found by Coverity, where interp's
constructor allocated memory for m_name that interp's destructor did
not free.
gdb/ChangeLog:
* interps.h (interp::m_name): Make private and mutable.
* interps.c (interp::~interp): Free m_name.
Diffstat (limited to 'binutils')
0 files changed, 0 insertions, 0 deletions