Commit be6053eb authored by Michael Beck's avatar Michael Beck
Browse files

BugFix: get_next_neighbour(): free the nodeset allocated in the iterator when next steps outside:

[r13475]
parent cbd71fa6
......@@ -183,6 +183,9 @@ static INLINE void neighbours_break(adj_iter_t *it, int force)
static ir_node *get_next_neighbour(adj_iter_t *it) {
ir_node *res = ir_nodeset_iterator_next(&it->iter);
if (res == NULL) {
ir_nodeset_destroy(&it->neighbours);
}
return res;
}
......
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