fix fftw free issue