introduced by
23ca07b5 /
7b6508e8
Change-Id: I713827221923270f8ba94b3ed33ee126f3ce084c
void fft5d_destroy(fft5d_plan plan) {
int s,t;
- /* Note that we expect plan->lin and plan->lout to be freed elsewhere */
- if (plan->nthreads > 1)
- {
- free(plan->lout2);
- free(plan->lout3);
- }
-
for (s=0;s<3;s++)
{
if (plan->p1d[s])
{
sfree_aligned(plan->lin);
sfree_aligned(plan->lout);
- sfree_aligned(plan->lout2);
- sfree_aligned(plan->lout3);
+ if (plan->nthreads > 1)
+ {
+ sfree_aligned(plan->lout2);
+ sfree_aligned(plan->lout3);
+ }
}
#ifdef FFT5D_THREADS