Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
74d89854
Commit
74d89854
authored
Dec 30, 2015
by
Christoph Mallon
Browse files
ir: Plug a memory leak, when maturing a block without predecessors.
parent
7f94203b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/ircons.c
View file @
74d89854
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment