diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-01-15 16:35:04 +0100 |
---|---|---|
committer | pespin <pespin@sysmocom.de> | 2021-01-18 11:39:24 +0000 |
commit | 54a98b5b52fa2b2117a374f186173547dd0b8027 (patch) | |
tree | ff3d7ed62740acd64ea5df51a394df57e4347e09 | |
parent | radioInterfaceMulti: Fix memory leak upon close() (diff) | |
download | OsmoTRX-54a98b5b52fa2b2117a374f186173547dd0b8027.tar.xz OsmoTRX-54a98b5b52fa2b2117a374f186173547dd0b8027.zip |
ChannelizerBase: Fix memory leak
The memory leak was reported by ASan:
Direct leak of 32 byte(s) in 1 object(s) allocated from:
#0 0x7f23b488e459 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x558e83e39e3c in ChannelizerBase::initFilters() /osmo-trx/Transceiver52M/ChannelizerBase.cpp:84
#2 0x558e83e3a8a0 in ChannelizerBase::init() /osmo-trx/Transceiver52M/ChannelizerBase.cpp:188
#3 0x558e83e2d263 in RadioInterfaceMulti::init(int) /osmo-trx/Transceiver52M/radioInterfaceMulti.cpp:197
#4 0x558e83de76d2 in makeRadioInterface(trx_ctx*, RadioDevice*, int) /osmo-trx/Transceiver52M/osmo-trx.cpp:115
#5 0x558e83dea663 in trx_start /osmo-trx/Transceiver52M/osmo-trx.cpp:600
#6 0x558e83dead6f in main /osmo-trx/Transceiver52M/osmo-trx.cpp:695
#7 0x7f23b2576151 in __libc_start_main (/usr/lib/libc.so.6+0x28151)
Change-Id: Ibc4c7edeb9bba517db08fce152d863e6cc0c7bbb
-rw-r--r-- | Transceiver52M/ChannelizerBase.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Transceiver52M/ChannelizerBase.cpp b/Transceiver52M/ChannelizerBase.cpp index e6eeed2..9910091 100644 --- a/Transceiver52M/ChannelizerBase.cpp +++ b/Transceiver52M/ChannelizerBase.cpp @@ -244,6 +244,7 @@ ChannelizerBase::~ChannelizerBase() free(subFilters[i]); delete[] hist[i]; } + free(subFilters); fft_free(fftInput); fft_free(fftOutput); |