From 5ca8e744641e1b03cc6e4cdbc46e7ece0750240d Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sat, 10 Feb 2018 00:21:35 +0100 Subject: re PR rtl-optimization/84308 (Memory leak in spread_components) PR rtl-optimization/84308 * shrink-wrap.c (spread_components): Release todo vector. From-SVN: r257544 --- gcc/shrink-wrap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/shrink-wrap.c') diff --git a/gcc/shrink-wrap.c b/gcc/shrink-wrap.c index eda0f06..fd19ace 100644 --- a/gcc/shrink-wrap.c +++ b/gcc/shrink-wrap.c @@ -1370,6 +1370,8 @@ spread_components (sbitmap components) bitmap_clear_bit (seen, bb->index); } + todo.release (); + /* Finally, mark everything not not needed both forwards and backwards. */ FOR_EACH_BB_FN (bb, cfun) -- cgit v1.1