fixed memory leak in mac/ue

This commit is contained in:
Ismael Gomez 2017-08-23 12:33:33 +02:00
parent 5fed766806
commit 49e8a2c594
2 changed files with 6 additions and 0 deletions

View File

@ -58,6 +58,10 @@ public:
}
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);
}

View File

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