From: Martin Liska Date: Mon, 11 Jan 2021 13:01:07 +0000 (+0100) Subject: Properly release symtab::m_clones. X-Git-Tag: upstream/12.2.0~10361 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbe9758ff494d55d558a2a0c5e8702c50fcebdf0;p=platform%2Fupstream%2Fgcc.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 cdb19cb..5695a43 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; }