From: Martin Liska Date: Mon, 11 Jan 2021 13:01:07 +0000 (+0100) Subject: Properly release symtab::m_clones. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cbe9758ff494d55d558a2a0c5e8702c50fcebdf0;p=gcc.git Properly release symtab::m_clones. gcc/ChangeLog: PR jit/98615 * symtab-clones.h (clone_info::release): Release symtab::m_clones with ggc_delete as it's a GGC memory. --- diff --git a/gcc/symtab-clones.h b/gcc/symtab-clones.h index cdb19cb6c8c..5695a434f6a 100644 --- 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; }