Skip to content

Commit

Permalink
fix RLC AM reset again to dealloc SDUs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepuschmann committed Apr 4, 2018
1 parent 8a83137 commit d42316f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/upper/rlc_am.cc
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,12 @@ void rlc_am::reset()
pthread_mutex_lock(&mutex);
reordering_timeout.reset();
if(tx_sdu) {
tx_sdu->reset();
pool->deallocate(tx_sdu);
tx_sdu = NULL;
}
if(rx_sdu) {
rx_sdu->reset();
pool->deallocate(rx_sdu);
rx_sdu = NULL;
}

vt_a = 0;
Expand Down

0 comments on commit d42316f

Please sign in to comment.