diff --git a/AMDiS/src/Mesh.cc b/AMDiS/src/Mesh.cc index 617524e325841aa4f470b94b8cbc7b0d6edc9616..a1ad385f81d9a42567f9039b29a824dd14f11bcb 100644 --- a/AMDiS/src/Mesh.cc +++ b/AMDiS/src/Mesh.cc @@ -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();