diff options
| -rw-r--r-- | modules/benchmark/fft.c | 2 | ||||
| -rw-r--r-- | modules/benchmark/fftbench.c | 3 | 
2 files changed, 3 insertions, 2 deletions
| diff --git a/modules/benchmark/fft.c b/modules/benchmark/fft.c index 503a7aaf..47acc369 100644 --- a/modules/benchmark/fft.c +++ b/modules/benchmark/fft.c @@ -21,7 +21,7 @@  #include "fftbench.h"  /* if anything changes in this block, increment revision */ -#define BENCH_REVISION 2 +#define BENCH_REVISION 3  #define CRUNCH_TIME 5  static gpointer fft_for(void *in_data, gint thread_number) diff --git a/modules/benchmark/fftbench.c b/modules/benchmark/fftbench.c index 9449cffd..a531e276 100644 --- a/modules/benchmark/fftbench.c +++ b/modules/benchmark/fftbench.c @@ -69,7 +69,7 @@ static void lup_decompose(FFTBench *fftbench)      double p, temp, **a;      int *perm = (int *) malloc(sizeof(double) * N); -     +    free(fftbench->p);      fftbench->p = perm;      a = fftbench->a; @@ -181,6 +181,7 @@ FFTBench *fft_bench_new(void)      }      fftbench->b = (double *) malloc(sizeof(double) * N); +    fftbench->p = NULL;      for (i = 0; i < N; ++i)  	fftbench->b[i] = random_double(); | 
