Patchwork [07/20] fix memory leak

login
register
mail settings
Submitter Sebastian Pop
Date Aug. 15, 2011, 7:12 a.m.
Message ID <1313392379-1525-7-git-send-email-sebpop@gmail.com>
Download mbox | patch
Permalink /patch/109992/
State New
Headers show

Comments

Sebastian Pop - Aug. 15, 2011, 7:12 a.m.
---
 gcc/graphite-sese-to-poly.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c
index 7e23c9d..05280e7 100644
--- a/gcc/graphite-sese-to-poly.c
+++ b/gcc/graphite-sese-to-poly.c
@@ -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--;
       }