diff --git a/lib/node_modules/@stdlib/math/strided/special/strunc/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/math/strided/special/strunc/benchmark/c/benchmark.length.c index c6da372d28b0..ea3aaf920d97 100644 --- a/lib/node_modules/@stdlib/math/strided/special/strunc/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/math/strided/special/strunc/benchmark/c/benchmark.length.c @@ -114,11 +114,13 @@ float rand_uniformf( float a, float b ) { */ static double benchmark( int iterations, int len ) { double elapsed; - float x[ len ]; - float y[ len ]; + float *x; + float *y; double t; int i; + x = (float *)malloc( len * sizeof( float ) ); + y = (float *)malloc( len * sizeof( float ) ); for ( i = 0; i < len; i++ ) { x[ i ] = rand_uniformf( -10.0f, 10.0f ); y[ i ] = 0.0f; @@ -135,6 +137,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; }