CRS SCell searcher: Fixed memory leaks

master
Xavier Arteaga 5 years ago committed by Xavier Arteaga
parent 91a7bbf2b6
commit 9ee8cc0ad2

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

@ -43,4 +43,4 @@ target_link_libraries(scell_search_test
rrc_asn1 rrc_asn1
${CMAKE_THREAD_LIBS_INIT} ${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}) ${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)

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

Loading…
Cancel
Save