Update fix for CUDA memory fragmentation
In addition to the changes in !31 (merged), also free the cuFFT plans and temporary device buffer in case memory fragmentation is detected.
In addition to the changes in !31 (merged), also free the cuFFT plans and temporary device buffer in case memory fragmentation is detected.