Added missing deallocation in RLC UM in case of too small pdu

This commit is contained in:
Ismael Gomez 2017-11-01 16:30:14 -07:00
parent bb2bc95247
commit d615dc9ec9
1 changed files with 2 additions and 1 deletions

View File

@ -279,6 +279,7 @@ int rlc_um::build_data_pdu(uint8_t *payload, uint32_t nof_bytes)
if(pdu_space <= head_len + 1)
{
pool->deallocate(pdu);
log->warning("%s Cannot build a PDU - %d bytes available, %d bytes required for header\n",
rrc->get_rb_name(lcid).c_str(), nof_bytes, head_len);
return 0;