improve fft with fftwf_malloc, still double free or corrupt memory