Skip to content

Commit 094f369

Browse files
committed
Fix.
1 parent ed6beac commit 094f369

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

SU2_CFD/src/numerics/elasticity/CFEANonlinearElasticity.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,9 @@ CFEANonlinearElasticity::~CFEANonlinearElasticity() {
214214
delete [] EField_Ref_Mod;
215215
delete [] EField_Curr_Unit;
216216

217-
delete [] ke_DE_i;
218-
217+
if (maxwell_stress) {
218+
delete [] ke_DE_i;
219+
}
219220
}
220221

221222

0 commit comments

Comments
 (0)