Do not deallocate BCCH buffer in dl_harq

This commit is contained in:
Ismael Gomez 2018-03-06 12:39:29 +01:00
parent dc65061dbb
commit 8f028e34f3
1 changed files with 4 additions and 2 deletions

View File

@ -226,7 +226,9 @@ private:
is_first_tb = true; is_first_tb = true;
ack = false; ack = false;
if (payload_buffer_ptr) { if (payload_buffer_ptr) {
harq_entity->demux_unit->deallocate(payload_buffer_ptr); if (pid != HARQ_BCCH_PID) {
harq_entity->demux_unit->deallocate(payload_buffer_ptr);
}
payload_buffer_ptr = NULL; payload_buffer_ptr = NULL;
} }
bzero(&cur_grant, sizeof(Tgrant)); bzero(&cur_grant, sizeof(Tgrant));
@ -342,7 +344,7 @@ private:
harq_entity->nof_pkts++); harq_entity->nof_pkts++);
} }
} }
} else { } else if (pid != HARQ_BCCH_PID) {
harq_entity->demux_unit->deallocate(payload_buffer_ptr); harq_entity->demux_unit->deallocate(payload_buffer_ptr);
} }