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.h
diff --git
a/gdb/interps.h
b/gdb/interps.h
index
74c9a80
..
dbf91f1
100644
(file)
--- a/
gdb/interps.h
+++ b/
gdb/interps.h
@@
-80,10
+80,12
@@
public:
}
/* This is the name in "-i=" and "set interpreter". */
- const char *m_name;
+private:
+ char *m_name;
/* Interpreters are stored in a linked list, this is the next
one... */
+public:
struct interp *next;
/* Has the init method been run? */