Revert "only reset SDU buffer in RLC AM/UM"

This reverts commit 8d852ddfe5.

This commit was needed because the order in which objects
where destructed on UE exit was such that the byte_buffer was deleted
before RLC_AM dtor was called.
master
Andre Puschmann 7 years ago
parent 20e6ed102e
commit 5cfffd11e1

@ -72,6 +72,14 @@ 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) {
rx_sdu->reset(); pool->deallocate(rx_sdu);
} }
if(tx_sdu) { if(tx_sdu) {
tx_sdu->reset(); pool->deallocate(tx_sdu);
} }
if(mac_timers) { if(mac_timers) {

Loading…
Cancel
Save