Commit 146abbb8 authored by Ben Boeckel's avatar Ben Boeckel

vtkYoungsMaterialInterface: plug memory leaks

Change-Id: I6fcdd2e8faf210bf7dadc8bafb49a1d38ac23f63
parent 7ff34b74
......@@ -2660,6 +2660,11 @@ namespace vtkYoungsMaterialInterfaceCellCutInternals
REAL x = newtonSearchPolynomialFunc( surfaceFunction, derivatives[s], y, xmin, xmax );
DBG_MESG( "final x = "<< x );
FREE_LOCAL_ARRAY( derivatives, REAL2, nv-1 );
FREE_LOCAL_ARRAY( index, unsigned char, nv );
FREE_LOCAL_ARRAY( rindex, unsigned char, nv );
return x ;
}
......@@ -3025,6 +3030,11 @@ namespace vtkYoungsMaterialInterfaceCellCutInternals
REAL x = newtonSearchPolynomialFunc( volumeFunction, derivatives[s], y, xmin, xmax );
DBG_MESG( "final x = "<< x );
FREE_LOCAL_ARRAY( rindex, unsigned char, nv );
FREE_LOCAL_ARRAY( index, unsigned char, nv );
FREE_LOCAL_ARRAY( derivatives, REAL3, nv-1 );
return x ;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment