only reset SDU buffer in RLC AM/UM

master
Andre Puschmann 7 years ago
parent 4e8580b02f
commit 8d852ddfe5

@ -72,14 +72,6 @@ rlc_am::~rlc_am()
{ {
// reset RLC and dealloc SDUs // reset RLC and dealloc SDUs
stop(); stop();
if(rx_sdu) {
pool->deallocate(rx_sdu);
}
if(tx_sdu) {
pool->deallocate(tx_sdu);
}
} }
void rlc_am::init(srslte::log *log_, void rlc_am::init(srslte::log *log_,

@ -136,11 +136,11 @@ void rlc_um::reset()
vr_uh = 0; vr_uh = 0;
pdu_lost = false; pdu_lost = false;
if(rx_sdu) { if(rx_sdu) {
pool->deallocate(rx_sdu); rx_sdu->reset();
} }
if(tx_sdu) { if(tx_sdu) {
pool->deallocate(tx_sdu); tx_sdu->reset();
} }
if(mac_timers) { if(mac_timers) {

Loading…
Cancel
Save