DiscussionsIssue archiveOther usage issues

Archived discussion

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

Other usage issuesThu, 01/12/2012 - 17:121 reply

Browse this forum
QuestionAuthor

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;
}

Author

Discussion

1 archived reply

Posts are displayed in their archived order.

01Author