Commit e0ac4edc authored by Raymond Knopp's avatar Raymond Knopp

Temporary hack to fix the memory leak issue that appears in pdcp list of the...

Temporary hack to fix the memory leak issue that appears in pdcp list of the UE only for the Unicast sidelink case. It has to be properly fixed afterwards.
parent 23005bd4
...@@ -163,7 +163,7 @@ int pdcp_fifo_flush_sdus(const protocol_ctxt_t* const ctxt_pP) ...@@ -163,7 +163,7 @@ int pdcp_fifo_flush_sdus(const protocol_ctxt_t* const ctxt_pP)
#endif #endif
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_PDCP_FIFO_FLUSH, 1 ); VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_PDCP_FIFO_FLUSH, 1 );
while (sdu_p && cont) { while (sdu_p && cont && sdu_p!=0x01 && sdu_p!=0x02) { //&& sdu_p!=0x01 && sdu_p!=0x02
#ifdef DEBUG_PDCP_FIFO_FLUSH_SDU #ifdef DEBUG_PDCP_FIFO_FLUSH_SDU
LOG_D(PDCP, "[%s] SFN/SF=%d/%d inst=%d size=%d\n", LOG_D(PDCP, "[%s] SFN/SF=%d/%d inst=%d size=%d\n",
......
...@@ -197,7 +197,7 @@ list_add_tail_eurecom (mem_block_t * elementP, list_t * listP) ...@@ -197,7 +197,7 @@ list_add_tail_eurecom (mem_block_t * elementP, list_t * listP)
tail = listP->tail; tail = listP->tail;
// almost one element // almost one element
if (tail == NULL) { if (tail == NULL || tail == 0x100000000) { //|| tail == 0x100000000
listP->head = elementP; listP->head = elementP;
} else { } else {
tail->next = elementP; tail->next = elementP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment