Skip to content

Commit 5e7f1fa

Browse files
fix: c error
1 parent 84d4675 commit 5e7f1fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/node_modules/@stdlib/blas/base/saxpy/benchmark/c/benchmark.length.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ static double benchmark1( int iterations, int len ) {
119119
if ( y[ 0 ] != y[ 0 ] ) {
120120
printf( "should not return NaN\n" );
121121
}
122-
return elapsed;
123122
free( x );
124123
free( y );
124+
return elapsed;
125125
}
126126

127127
/**
@@ -156,9 +156,9 @@ static double benchmark2( int iterations, int len ) {
156156
if ( y[ 0 ] != y[ 0 ] ) {
157157
printf( "should not return NaN\n" );
158158
}
159-
return elapsed;
160159
free( x );
161160
free( y );
161+
return elapsed;
162162
}
163163

164164
/**

0 commit comments

Comments
 (0)