Commit d3764c3c authored by Reuther, Sebastian's avatar Reuther, Sebastian
Browse files

memory problem in findElInfo

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