Skip to content
Snippets Groups Projects
Commit d3764c3c authored by Reuther, Sebastian's avatar Reuther, Sebastian
Browse files

memory problem in findElInfo

parent 6d1207b9
No related branches found
No related tags found
No related merge requests found
......@@ -716,8 +716,10 @@ namespace AMDiS {
if (i != k && mel->getNeighbour(i) && !macrosVisited.count(mel->getNeighbour(i)->getIndex()))
active.push(mel->getNeighbour(i));
}
if (active.empty())
if (active.empty()) {
delete mel_info;
return false;
}
mel = active.top();
active.pop();
......
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