From ea3628bdeb9a5411aaa1aa567fa6bc005057482f Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 25 Oct 2019 00:24:42 +0200 Subject: [PATCH] symbols-summary.h (fast_function_summary::release, fast_call_summary::release): Free m_vector. From-SVN: r277425 --- gcc/ChangeLog | 5 +++++ gcc/symbol-summary.h | 4 ++++ 2 files changed, 9 insertions(+) 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; } -- 2.30.2