Memory leak in math_FunctionRoots.cxx line 254 (OCCT 6.5.2)

Hello,

the lines

if( Nvalid Done = Standard_False;
return;
}

do not delete the previously allocated variable 'ptrval'. I would change the code to:

if( Nvalid Done = Standard_False;
delete [] ptrval;
return;
}

Pawel

Pawel's picture