public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-5524] Fix freeing of thunk-info
@ 2020-11-29 22:22 Jan Hubicka
  0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2020-11-29 22:22 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:caea077c17fdf6fe1aa4c350260f25439dfd5066

commit r11-5524-gcaea077c17fdf6fe1aa4c350260f25439dfd5066
Author: Jan Hubicka <jh@suse.cz>
Date:   Sun Nov 29 23:22:24 2020 +0100

    Fix freeing of thunk-info
    
            PR jit/97867
            * symtab-thunks.h (thunk_info::release): Use ggc_delete.

Diff:
---
 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  */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-29 22:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-29 22:22 [gcc r11-5524] Fix freeing of thunk-info Jan Hubicka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).