critical bug fix: access after delete
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>pull/1/head
parent
af5063abc1
commit
211e7170e4
|
@ -310,7 +310,7 @@ void Operator_Cylinder::AddExtension(Operator_Extension* op_ext)
|
|||
Operator_Multithread::AddExtension(op_ext);
|
||||
else
|
||||
{
|
||||
delete op_ext;
|
||||
cerr << "Operator_Cylinder::AddExtension: Warning: Operator extension \"" << op_ext->GetExtensionName() << "\" is not compatible with cylinder-coords!! skipping...!" << endl;
|
||||
delete op_ext;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -498,8 +498,8 @@ void Operator_CylinderMultiGrid::AddExtension(Operator_Extension* op_ext)
|
|||
//check whether extension is save to use in multi-grid
|
||||
if (op_ext->IsCylindricalMultiGridSave(false)==false)
|
||||
{
|
||||
delete op_ext;
|
||||
cerr << "Operator_CylinderMultiGrid::AddExtension: Warning: Operator extension \"" << op_ext->GetExtensionName() << "\" is not compatible with cylindrical multi-grids!! skipping...!" << endl;
|
||||
delete op_ext;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -173,8 +173,8 @@ void Operator_MPI::AddExtension(Operator_Extension* op_ext)
|
|||
Operator_SSE_Compressed::AddExtension(op_ext);
|
||||
else
|
||||
{
|
||||
delete op_ext;
|
||||
cerr << "Operator_MPI::AddExtension: Warning: Operator extension \"" << op_ext->GetExtensionName() << "\" is not compatible with MPI!! skipping...!" << endl;
|
||||
delete op_ext;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue