Commit 43f99a1b authored by Anthony Royer's avatar Anthony Royer

Memory leaks

parent 54459415
Pipeline #2728 passed with stage
in 20 minutes and 28 seconds
......@@ -433,7 +433,12 @@ void elasticitySolver::addDirichletBC(int dim, int entityId, int component,
case 0: diri.onWhat = BoundaryCondition::ON_VERTEX; break;
case 1: diri.onWhat = BoundaryCondition::ON_EDGE; break;
case 2: diri.onWhat = BoundaryCondition::ON_FACE; break;
default: return;
default:
{
delete diri.g;
delete diri._f;
return;
}
}
allDirichlet.push_back(diri);
}
......@@ -457,7 +462,12 @@ void elasticitySolver::addNeumannBC(int dim, int entityId,
case 0: neu.onWhat = BoundaryCondition::ON_VERTEX; break;
case 1: neu.onWhat = BoundaryCondition::ON_EDGE; break;
case 2: neu.onWhat = BoundaryCondition::ON_FACE; break;
default: return;
default:
{
delete neu.g;
delete neu._f;
return;
}
}
allNeumann.push_back(neu);
}
......
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