diff options
Diffstat (limited to 'src/mtx_rowrifft.c')
-rw-r--r-- | src/mtx_rowrifft.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mtx_rowrifft.c b/src/mtx_rowrifft.c index ea803da..d8d6530 100644 --- a/src/mtx_rowrifft.c +++ b/src/mtx_rowrifft.c @@ -200,10 +200,14 @@ static void mTXrowrifftBang (MTXRowrifft *x) static void deleteMTXRowrifft (MTXRowrifft *x) { - free(x->f_re); - free(x->f_im); - free(x->list_re); - free(x->list_im); + if (x->f_re) + free(x->f_re); + if (x->f_im) + free(x->f_im); + if (x->list_re) + free(x->list_re); + if (x->list_im) + free(x->list_im); } static void mtx_rowrifft_setup (void) |