From 8f028e34f30f8f14e902a5ee2b44d6ce8fa686b2 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Tue, 6 Mar 2018 12:39:29 +0100 Subject: [PATCH] Do not deallocate BCCH buffer in dl_harq --- srsue/hdr/mac/dl_harq.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srsue/hdr/mac/dl_harq.h b/srsue/hdr/mac/dl_harq.h index 9d7d8f48e..f4c557898 100644 --- a/srsue/hdr/mac/dl_harq.h +++ b/srsue/hdr/mac/dl_harq.h @@ -226,7 +226,9 @@ private: is_first_tb = true; ack = false; 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; } bzero(&cur_grant, sizeof(Tgrant)); @@ -342,7 +344,7 @@ private: harq_entity->nof_pkts++); } } - } else { + } else if (pid != HARQ_BCCH_PID) { harq_entity->demux_unit->deallocate(payload_buffer_ptr); }