Patchwork [07/11] fix memory leak

login
register
mail settings
Submitter Sebastian Pop
Date Aug. 11, 2011, 10:44 p.m.
Message ID <1313102679-32012-8-git-send-email-sebpop@gmail.com>
Download mbox | patch
Permalink /patch/109701/
State New
Headers show

Comments

Sebastian Pop - Aug. 11, 2011, 10:44 p.m.
Signed-off-by: Sebastian Pop <sebpop@gmail.com>
---
 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--;
       }