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 a4b32508b5b32f54cc73830a21e31474bb8e15c5..3fac6bac1476e5fabeff6b705030a9df9a3c0b3f 100644 (file)
@@ -1,3 +1,8 @@
+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
index 7f2e7218460e758c7cb9825a9e9210b04b97f97a..a0bacadb63bbc7e418052b01afc8fcbb463c3011 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;
 }