From 7027372cd7015e9d457cd93198e6646650707290 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 14 Jan 2018 07:00:29 +0100 Subject: Avoid leaking FFT buffers in OFDM Generator --- src/OfdmGenerator.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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); } -- cgit v1.2.3