From ba2dbfce55c9b1835d1b2fbc4f0e3aa025732c80 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 19 Nov 2014 20:42:29 +0000 Subject: [PATCH] PR jit/63854: Fix leak in ipa-icf.c gcc/ChangeLog: PR jit/63854 * ipa-icf.c (sem_item_optimizer::~sem_item_optimizer): Free each congruence_class_group *. From-SVN: r217811 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-icf.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c8e18f64167..d577401adf6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-11-19 David Malcolm + + PR jit/63854 + * ipa-icf.c (sem_item_optimizer::~sem_item_optimizer): Free each + congruence_class_group *. + 2014-11-19 Uros Bizjak PR target/63947 diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index af8360138ef..e0633e762f2 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -1322,6 +1322,7 @@ sem_item_optimizer::~sem_item_optimizer () delete (*it)->classes[i]; (*it)->classes.release (); + free (*it); } m_items.release (); -- 2.30.2