projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dd0d3e
)
Properly release symtab::m_clones.
author
Martin Liska
<mliska@suse.cz>
Mon, 11 Jan 2021 13:01:07 +0000
(14:01 +0100)
committer
Martin Liska
<mliska@suse.cz>
Mon, 11 Jan 2021 17:15:06 +0000
(18:15 +0100)
gcc/ChangeLog:
PR jit/98615
* symtab-clones.h (clone_info::release): Release
symtab::m_clones with ggc_delete as it's a GGC memory.
gcc/symtab-clones.h
patch
|
blob
|
history
diff --git
a/gcc/symtab-clones.h
b/gcc/symtab-clones.h
index cdb19cb6c8c591e9e6e266649d2f3adc4bfcf829..5695a434f6aa446f863a0d2fcf5050a62e1b6eac 100644
(file)
--- a/
gcc/symtab-clones.h
+++ b/
gcc/symtab-clones.h
@@
-83,7
+83,7
@@
inline void
clone_info::release ()
{
if (symtab->m_clones)
- delete (symtab->m_clones);
+
ggc_
delete (symtab->m_clones);
symtab->m_clones = NULL;
}