]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
free summary vectors.
authorJan Hubicka <hubicka@ucw.cz>
Fri, 25 Oct 2019 12:02:39 +0000 (14:02 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 25 Oct 2019 12:02:39 +0000 (12:02 +0000)
Backport from mainline
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.

From-SVN: r277445

gcc/ChangeLog
gcc/symbol-summary.h

index 07d33590c77b958bf0c08b0fef230231283a13ff..5fb404aefc4fc5e32e656cf8ba495398fef53aa4 100644 (file)
@@ -1,3 +1,10 @@
+2019-10-25  Jan Hubicka  <hubicka@ucw.cz>
+
+       Backport from mainline
+       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-25  Jan Hubicka  <hubicka@ucw.cz>
 
        Backport from mainline
index 0219f3a81eac56bea237b10f4ed8effe5fe0653b..74544fbf879022e0478d25f484bfcdc204aa893a 100644 (file)
@@ -461,6 +461,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;
 }
 
@@ -926,6 +928,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;
 }