From ae99b315ba5b9e1ccc221b3c45de323cbc574400 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 2 Jan 2021 16:05:17 +0100 Subject: [PATCH] ggc_free basic blocks * cfg.c (free_block): ggc_free bb. --- gcc/cfg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gcc/cfg.c b/gcc/cfg.c index 529b6ed2105..e8bd1456c9f 100644 --- a/gcc/cfg.c +++ b/gcc/cfg.c @@ -102,8 +102,7 @@ free_block (basic_block bb) bb->succs = NULL; vec_free (bb->preds); bb->preds = NULL; - /* Do not free BB itself yet since we leak pointers to dead statements - that points to dead basic blocks. */ + ggc_free (bb); } /* Free the memory associated with the CFG in FN. */ -- 2.30.2