Skip to content
Snippets Groups Projects
Commit 2270f4fd authored by Richard Biener's avatar Richard Biener
Browse files

Fix memory leak in loop header copying

	* tree-ssa-loop-ch.cc (ch_base::copy_headers): Free loop BBs.
parent 47c3144c
No related branches found
No related tags found
No related merge requests found
......@@ -642,6 +642,7 @@ ch_base::copy_headers (function *fun)
if (stmt_can_terminate_bb_p (gsi_stmt (bsi)))
precise = false;
}
free (bbs);
}
if (precise
&& get_max_loop_iterations_int (loop) == 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment