fix buffer free and code clone in prach.cc

master
Andre Puschmann 6 years ago
parent d86cddfd61
commit 6b2e98ec71

@ -38,18 +38,7 @@ namespace srsue {
prach::~prach() {
if (mem_initiated) {
for (int i=0;i<64;i++) {
if (buffer[i]) {
free(buffer[i]);
}
}
if (signal_buffer) {
free(signal_buffer);
}
srslte_cfo_free(&cfo_h);
srslte_prach_free(&prach_obj);
}
stop();
}
void prach::init(uint32_t max_prb, srslte::log* log_h_)

Loading…
Cancel
Save