Free m_vector of symbol and call summaries

Message ID 20191024224946.astxjthwvgctwk5i@kam.mff.cuni.cz
State New
Headers show
Series
  • Free m_vector of symbol and call summaries
Related show

Commit Message

Jan Hubicka Oct. 24, 2019, 10:49 p.m.
Hi,
we never free m_vector in summaries.  Fixed thus.

Honza

	* symbols-summary.h (fast_function_summary<T *, V>::release,
	fast_call_summary<T *, V>::release): Free m_vector.

Patch

Index: symbol-summary.h
===================================================================
--- symbol-summary.h	(revision 277424)
+++ symbol-summary.h	(working copy)
@@ -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;
 }