symbols-summary.h (fast_function_summary<T *, [...]): Free m_vector.
authorJan Hubicka <hubicka@ucw.cz>
Thu, 24 Oct 2019 22:24:42 +0000 (00:24 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 24 Oct 2019 22:24:42 +0000 (22:24 +0000)
* symbols-summary.h (fast_function_summary<T *, V>::release,
fast_call_summary<T *, V>::release): Free m_vector.

From-SVN: r277425

gcc/ChangeLog
gcc/symbol-summary.h

index a4b3250..3fac6ba 100644 (file)
@@ -1,5 +1,10 @@
 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
 
+       * symbols-summary.h (fast_function_summary<T *, V>::release,
+       fast_call_summary<T *, V>::release): Free m_vector.
+
+2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
+
        * cgraphunit.c (symbol_table::process_new_functions): Call
        ipa_free_size_summary.
        * ipa-cp.c (ipcp_cloning_candidate_p): Update.
index 7f2e721..a0bacad 100644 (file)
@@ -458,6 +458,8 @@ fast_function_summary<T *, V>::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<T *, V>::release ()
     if ((*m_vector)[i] != NULL)
       this->release ((*m_vector)[i]);
 
+  vec_free (m_vector);
+
   this->m_released = true;
 }