diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-30 21:21:29 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-30 21:21:29 +0000 |
commit | 27ac41fdeb3de357f1e70fce1abc55a746dc44c5 (patch) | |
tree | 3036d34135267bbbbab6a30c751a51d756d8ef00 /gcc/graphite-clast-to-gimple.c | |
parent | acad129fdc95e22732236647333e9c80bda98872 (diff) | |
download | gcc-27ac41fdeb3de357f1e70fce1abc55a746dc44c5.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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164809 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-clast-to-gimple.c')
-rw-r--r-- | gcc/graphite-clast-to-gimple.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/graphite-clast-to-gimple.c b/gcc/graphite-clast-to-gimple.c index faefbb6ad50..9a90ef79185 100644 --- a/gcc/graphite-clast-to-gimple.c +++ b/gcc/graphite-clast-to-gimple.c @@ -703,6 +703,8 @@ compute_bounds_for_level (poly_bb_p pbb, int level, mpz_t low, mpz_t up) ppl_max_for_le_pointset (ps, le, up); ppl_min_for_le_pointset (ps, le, low); + ppl_delete_Linear_Expression (le); + ppl_delete_Pointset_Powerset_C_Polyhedron (ps); } /* Compute the type for the induction variable at LEVEL for the |