fixed memory leak in mac/ue

master
Ismael Gomez 7 years ago
parent 5fed766806
commit 49e8a2c594

@ -58,6 +58,10 @@ public:
} }
virtual ~ue() { virtual ~ue() {
for (int i=0;i<NOF_HARQ_PROCESSES;i++) {
srslte_softbuffer_rx_free(&softbuffer_rx[i]);
srslte_softbuffer_tx_free(&softbuffer_tx[i]);
}
pthread_mutex_destroy(&mutex); pthread_mutex_destroy(&mutex);
} }

@ -60,6 +60,8 @@ void ue::config(uint16_t rnti_, uint32_t nof_prb, sched_interface *sched_, rrc_i
} }
} }
void ue::reset() void ue::reset()
{ {
bzero(&metrics, sizeof(mac_metrics_t)); bzero(&metrics, sizeof(mac_metrics_t));

Loading…
Cancel
Save