mirror of git://gcc.gnu.org/git/gcc.git
Fix memory leak in loop header copying
* tree-ssa-loop-ch.cc (ch_base::copy_headers): Free loop BBs.
This commit is contained in:
parent
47c3144c2f
commit
2270f4fdaa
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue