PR jit/63854: Fix leak in ipa-icf.c
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 19 Nov 2014 20:42:29 +0000 (20:42 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 19 Nov 2014 20:42:29 +0000 (20:42 +0000)
gcc/ChangeLog:
PR jit/63854
* ipa-icf.c (sem_item_optimizer::~sem_item_optimizer): Free each
congruence_class_group *.

From-SVN: r217811

gcc/ChangeLog
gcc/ipa-icf.c

index c8e18f64167db9d0ab097b8dc9386f660c0baf65..d577401adf68c28f0d926d17074c1f48cf0da0a5 100644 (file)
@@ -1,3 +1,9 @@
+2014-11-19  David Malcolm  <dmalcolm@redhat.com>
+
+       PR jit/63854
+       * ipa-icf.c (sem_item_optimizer::~sem_item_optimizer): Free each
+       congruence_class_group *.
+
 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/63947
index af8360138ef769a6bb9dc638afb8dd4cd5576f93..e0633e762f21a74fdb3597c7889d015c13b44b29 100644 (file)
@@ -1322,6 +1322,7 @@ sem_item_optimizer::~sem_item_optimizer ()
        delete (*it)->classes[i];
 
       (*it)->classes.release ();
+      free (*it);
     }
 
   m_items.release ();