From cbe9758ff494d55d558a2a0c5e8702c50fcebdf0 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 11 Jan 2021 14:01:07 +0100 Subject: [PATCH] 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. --- gcc/symtab-clones.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1