mirror of https://github.com/PentHertz/srsLTE.git
fixed memory leak in mac/ue
This commit is contained in:
parent
5fed766806
commit
49e8a2c594
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue