From 6b2e98ec71becd995e49ed99d9f37bdfde3016be Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 2 May 2019 11:50:30 +0200 Subject: [PATCH] fix buffer free and code clone in prach.cc --- srsue/src/phy/prach.cc | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/srsue/src/phy/prach.cc b/srsue/src/phy/prach.cc index d4a6e6f4b..5bfd7f5df 100644 --- a/srsue/src/phy/prach.cc +++ b/srsue/src/phy/prach.cc @@ -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_)