From: Jan Hubicka Date: Thu, 24 Oct 2019 22:24:42 +0000 (+0200) Subject: symbols-summary.h (fast_function_summary::release, fast_call_summary::release): Free m_vector. From-SVN: r277425 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a4b32508b5b..3fac6bac147 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-10-24 Jan Hubicka + + * symbols-summary.h (fast_function_summary::release, + fast_call_summary::release): Free m_vector. + 2019-10-24 Jan Hubicka * cgraphunit.c (symbol_table::process_new_functions): Call diff --git a/gcc/symbol-summary.h b/gcc/symbol-summary.h index 7f2e7218460..a0bacadb63b 100644 --- a/gcc/symbol-summary.h +++ b/gcc/symbol-summary.h @@ -458,6 +458,8 @@ fast_function_summary::release () if ((*m_vector)[i] != NULL) this->release ((*m_vector)[i]); + vec_free (m_vector); + this->m_released = true; } @@ -919,6 +921,8 @@ fast_call_summary::release () if ((*m_vector)[i] != NULL) this->release ((*m_vector)[i]); + vec_free (m_vector); + this->m_released = true; }