projects
/
external
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix interp::m_name resource leak found by Coverity
[external/binutils.git]
/
gdb
/
interps.c
diff --git
a/gdb/interps.c
b/gdb/interps.c
index
6fe4c74
..
883e042
100644
(file)
--- a/
gdb/interps.c
+++ b/
gdb/interps.c
@@
-84,7
+84,9
@@
interp::interp (const char *name)
}
interp::~interp ()
-{}
+{
+ xfree (m_name);
+}
/* An interpreter factory. Maps an interpreter name to the factory
function that instantiates an interpreter by that name. */