Memory leak in OpenGl_filters.cxx line 351 (OCCT 6.5.2)

Hello,

the lines:

if( !temp )
return TFailure;

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

if( !temp )
{
delete [] ptr;
return TFailure;
}

Pawel

Pawel's picture