diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-01-14 07:00:29 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-01-14 07:00:29 +0100 |
commit | 7027372cd7015e9d457cd93198e6646650707290 (patch) | |
tree | 074fe171f9b994c7ba8ba6dc9843aec43d1e6947 /src | |
parent | 770703c9c5c926be760af836bee26e554e81a71c (diff) | |
download | dabmod-7027372cd7015e9d457cd93198e6646650707290.tar.gz dabmod-7027372cd7015e9d457cd93198e6646650707290.tar.bz2 dabmod-7027372cd7015e9d457cd93198e6646650707290.zip |
Avoid leaking FFT buffers in OFDM Generator
Diffstat (limited to 'src')
-rw-r--r-- | src/OfdmGenerator.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/OfdmGenerator.cpp b/src/OfdmGenerator.cpp index b00d66b..57e0e0e 100644 --- a/src/OfdmGenerator.cpp +++ b/src/OfdmGenerator.cpp @@ -139,6 +139,14 @@ OfdmGenerator::~OfdmGenerator() fftwf_destroy_plan(myFftPlan); } + if (myCfrPostClip) { + fftwf_free(myCfrPostClip); + } + + if (myCfrPostFft) { + fftwf_free(myCfrPostFft); + } + if (myCfrFft) { fftwf_destroy_plan(myCfrFft); } |