From b69854724781655fed8c3eadd9ae65c3c2d8d2c2 Mon Sep 17 00:00:00 2001 From: Paul Sutton Date: Thu, 15 Feb 2018 16:39:56 +0000 Subject: [PATCH] Fix for first RLC tx after handover --- lib/src/upper/rlc_am.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/upper/rlc_am.cc b/lib/src/upper/rlc_am.cc index 413a02ac1..e12138268 100644 --- a/lib/src/upper/rlc_am.cc +++ b/lib/src/upper/rlc_am.cc @@ -112,8 +112,10 @@ void rlc_am::reset() pthread_mutex_lock(&mutex); reordering_timeout.reset(); - if(tx_sdu) - tx_sdu->reset(); + if(tx_sdu) { + pool->deallocate(tx_sdu); + tx_sdu = NULL; + } if(rx_sdu) rx_sdu->reset();