diff --git a/lib/node_modules/@stdlib/math/strided/special/dabs2/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/math/strided/special/dabs2/benchmark/c/benchmark.length.c index 63bc659c983b..f510a13399be 100644 --- a/lib/node_modules/@stdlib/math/strided/special/dabs2/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/math/strided/special/dabs2/benchmark/c/benchmark.length.c @@ -96,11 +96,13 @@ static double rand_double( void ) { */ static double benchmark( int iterations, int len ) { double elapsed; - double x[ len ]; - double y[ len ]; + double *x; + double *y; double t; int i; + x = (double *) malloc( len * sizeof( double ) ); + y = (double *) malloc( len * sizeof( double ) ); for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_double()*200.0 ) - 100.0; y[ i ] = 0.0; @@ -118,6 +120,8 @@ static double benchmark( int iterations, int len ) { if ( y[ 0 ] != y[ 0 ] ) { printf( "should not return NaN\n" ); } + free( x ); + free( y ); return elapsed; }