From e66c71e1cabf13a62cbda9be3165b7ac21a56e61 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 21 Mar 2018 12:13:09 -0400 Subject: [PATCH] fix linker error bug with fftw3 and -DFFT_SINGLE --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 82dac5af6d..95368385bd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -70,6 +70,10 @@ int main(int argc, char **argv) #ifdef FFT_FFTW3 // tell fftw3 to delete its global memory pool // and thus avoid bogus valgrind memory leak reports +#ifdef FFT_SINGLE + fftwf_cleanup(); +#else fftw_cleanup(); #endif +#endif }