From caea077c17fdf6fe1aa4c350260f25439dfd5066 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 29 Nov 2020 23:22:24 +0100 Subject: [PATCH] Fix freeing of thunk-info PR jit/97867 * symtab-thunks.h (thunk_info::release): Use ggc_delete. --- gcc/symtab-thunks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/symtab-thunks.h b/gcc/symtab-thunks.h index 41a684995b3..0dba2217793 100644 --- a/gcc/symtab-thunks.h +++ b/gcc/symtab-thunks.h @@ -167,7 +167,7 @@ inline void thunk_info::release () { if (symtab->m_thunks) - delete (symtab->m_thunks); + ggc_delete (symtab->m_thunks); symtab->m_thunks = NULL; } #endif /* GCC_SYMTAB_THUNKS_H */ -- 2.30.2