summaryrefslogtreecommitdiffstats
path: root/src/OfdmGenerator.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-14 07:00:29 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-14 07:00:29 +0100
commit7027372cd7015e9d457cd93198e6646650707290 (patch)
tree074fe171f9b994c7ba8ba6dc9843aec43d1e6947 /src/OfdmGenerator.cpp
parent770703c9c5c926be760af836bee26e554e81a71c (diff)
downloaddabmod-7027372cd7015e9d457cd93198e6646650707290.tar.gz
dabmod-7027372cd7015e9d457cd93198e6646650707290.tar.bz2
dabmod-7027372cd7015e9d457cd93198e6646650707290.zip
Avoid leaking FFT buffers in OFDM Generator
Diffstat (limited to 'src/OfdmGenerator.cpp')
-rw-r--r--src/OfdmGenerator.cpp8
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);
}