Explorar o código

starpufft/tests/testx.c: fix call to STARPUFFT(free) (followup to a4e0ec5aede2bb037ee6f05d321911764f097448)

Nathalie Furmento %!s(int64=4) %!d(string=hai) anos
pai
achega
9753d59196
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      starpufft/tests/testx.c

+ 4 - 4
starpufft/tests/testx.c

@@ -298,12 +298,12 @@ int main(int argc, char *argv[])
 #endif
 #endif
 
-	STARPUFFT(free)(in_orig);
-	STARPUFFT(free)(in);
-	STARPUFFT(free)(out);
+	STARPUFFT(free)(in_orig, size * sizeof(*in_orig));
+	STARPUFFT(free)(in, size * sizeof(*in));
+	STARPUFFT(free)(out, size * sizeof(*out));
 
 #ifdef STARPU_HAVE_FFTW
-	STARPUFFT(free)(out_fftw);
+	STARPUFFT(free)(out_fftw, size * sizeof(*out_fftw));
 #endif
 
 #ifdef STARPU_USE_CUDA