CRS SCell searcher: Fixed memory leaks

This commit is contained in:
Xavier Arteaga 2019-09-12 10:24:44 +02:00 committed by Xavier Arteaga
parent 91a7bbf2b6
commit 9ee8cc0ad2
3 changed files with 10 additions and 1 deletions

View File

@ -177,6 +177,8 @@ void srslte_refsignal_dl_sync_free(srslte_refsignal_dl_sync_t* q)
free(q->sequences[i]);
}
}
srslte_conv_fft_cc_free(&q->conv_fft_cc);
}
}

View File

@ -43,4 +43,4 @@ target_link_libraries(scell_search_test
rrc_asn1
${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES})
add_test(scell_search_test scell_search_test)
add_test(scell_search_test scell_search_test --duration=1 --phy_lib_log_level=0 --intra_meas_log_level=none --nof_enb=2 --cell.nof_prb=25)

View File

@ -623,5 +623,12 @@ int main(int argc, char** argv)
if (baseband_buffer) {
free(baseband_buffer);
}
for (auto& sb : softbuffer_tx) {
if (sb) {
free(sb);
}
}
srslte_dft_exit();
}