p2nfft: fix memory leak of gridsort data