summaryrefslogtreecommitdiff
path: root/gcc/graphite-sese-to-poly.c
diff options
context:
space:
mode:
authorSebastian Pop <sebastian.pop@amd.com>2010-09-30 21:21:29 +0000
committerSebastian Pop <spop@gcc.gnu.org>2010-09-30 21:21:29 +0000
commitcb5f9ec683c063ef931a3b6656644e4ba656ef4b (patch)
tree3036d34135267bbbbab6a30c751a51d756d8ef00 /gcc/graphite-sese-to-poly.c
parent03c830c2d92d3214d44102c9cfd128ceffeb341c (diff)
downloadgcc-cb5f9ec683c063ef931a3b6656644e4ba656ef4b.tar.gz
Fix Graphite memory leaks.
2010-09-23 Sebastian Pop <sebastian.pop@amd.com> * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le and ps. * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and domain. * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit): Do not allocate ub_expr, it is passed in initialized. From-SVN: r164809
Diffstat (limited to 'gcc/graphite-sese-to-poly.c')
-rw-r--r--gcc/graphite-sese-to-poly.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c
index 1ee6feeed15..87b226b80f0 100644
--- a/gcc/graphite-sese-to-poly.c
+++ b/gcc/graphite-sese-to-poly.c
@@ -1032,7 +1032,6 @@ add_upper_bounds_from_estimated_nit (scop_p scop, double_int nit,
ppl_Coefficient_t coef;
ppl_Constraint_t ub;
- ppl_new_Linear_Expression_with_dimension (&ub_expr, dim);
ppl_new_C_Polyhedron_from_space_dimension (&pol, dim, 0);
ppl_new_Linear_Expression_from_Linear_Expression (&nb_iters_le,
ub_expr);