Commit 74d89854 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

ir: Plug a memory leak, when maturing a block without predecessors.

parent 7f94203b
......@@ -268,8 +268,8 @@ void mature_immBlock(ir_node *block)
new_in[1] = new_r_Bad(irg, mode_X);
} else {
new_in = DUP_ARR_D(ir_node*, obst, block->in);
DEL_ARR_F(block->in);
}
DEL_ARR_F(block->in);
block->in = new_in;
block->attr.block.backedge = new_backedge_arr(obst, n_preds);
block->attr.block.dynamic_ins = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment