diff --git a/lib/node_modules/@stdlib/stats/base/dists/arcsine/cdf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/stats/base/dists/arcsine/cdf/benchmark/c/benchmark.c index a04568172462..18150ea22b67 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/arcsine/cdf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/stats/base/dists/arcsine/cdf/benchmark/c/benchmark.c @@ -93,13 +93,17 @@ static double random_uniform( const double min, const double max ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double a[ 100 ]; - double b[ 100 ]; + double *x; + double *a; + double *b; double y; double t; int i; + x = (double *) malloc( 100 * sizeof( double ) ); + a = (double *) malloc( 100 * sizeof( double ) ); + b = (double *) malloc( 100 * sizeof( double ) ); + for ( i = 0; i < 100; i++ ) { x[ i ] = random_uniform( -10.0, 10.0 ); a[ i ] = random_uniform( -20.0, 0.0 ); @@ -118,6 +122,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } + free( x ); + free( a ); + free( b ); return elapsed; }