Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
Sebastian Pop <sebpop@gmail.com>

	* graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
  • Loading branch information
sebpop authored and tobiasgrosser committed Jan 13, 2012
1 parent 5cbfefc commit 76903b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gcc/graphite-sese-to-poly.c
Original file line number Diff line number Diff line change
Expand Up @@ -1996,6 +1996,7 @@ build_scop_drs (scop_p scop)
if (VEC_empty (data_reference_p, GBB_DATA_REFS (PBB_BLACK_BOX (pbb))))
{
free_gimple_bb (PBB_BLACK_BOX (pbb));
free_poly_bb (pbb);
VEC_ordered_remove (poly_bb_p, SCOP_BBS (scop), i);
i--;
}
Expand Down

0 comments on commit 76903b0

Please sign in to comment.