From 8d862dace45fbc3997af5505dc8d219cb100df30 Mon Sep 17 00:00:00 2001 From: Robert Schmidt <robert.schmidt@eurecom.fr> Date: Fri, 2 Nov 2018 14:27:54 +0100 Subject: [PATCH] F1 test: fixes after merge --- cmake_targets/CMakeLists.txt | 4 ++-- openair2/LAYER2/PROTO_AGENT/cu_test.c | 2 +- openair2/LAYER2/PROTO_AGENT/du_test.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake_targets/CMakeLists.txt b/cmake_targets/CMakeLists.txt index 3e17f5a8f9..f540084cb9 100644 --- a/cmake_targets/CMakeLists.txt +++ b/cmake_targets/CMakeLists.txt @@ -2085,7 +2085,7 @@ add_executable(cu_test ) target_link_libraries(cu_test ${FLPT_MSG_LIB} ${ASYNC_IF_LIB} ${FSPT_MSG_LIB} ${PROTOBUF_LIB} - ${PROTO_AGENT_LIB} pthread UTIL ${T_LIB} dl + ${PROTO_AGENT_LIB} pthread UTIL ${T_LIB} dl ${ITTI_LIB} ) add_executable(du_test @@ -2099,7 +2099,7 @@ add_executable(du_test ) target_link_libraries(du_test ${FLPT_MSG_LIB} ${ASYNC_IF_LIB} ${FSPT_MSG_LIB} ${PROTOBUF_LIB} - ${PROTO_AGENT_LIB} pthread UTIL ${T_LIB} dl + ${PROTO_AGENT_LIB} pthread UTIL ${T_LIB} dl ${ITTI_LIB} ) target_link_libraries (lte-softmodem ${LIBXML2_LIBRARIES}) diff --git a/openair2/LAYER2/PROTO_AGENT/cu_test.c b/openair2/LAYER2/PROTO_AGENT/cu_test.c index 2abb85c941..a611c0edf1 100644 --- a/openair2/LAYER2/PROTO_AGENT/cu_test.c +++ b/openair2/LAYER2/PROTO_AGENT/cu_test.c @@ -38,7 +38,7 @@ pdcp_data_ind( fflush(stdout); free_mem_block(sdu_buffer_pP, __func__); /* cannot free because of const */ - free(ctxt_pP); + //free(ctxt_pP); recv_client = 1; return 0; } diff --git a/openair2/LAYER2/PROTO_AGENT/du_test.c b/openair2/LAYER2/PROTO_AGENT/du_test.c index b455ba43d0..2084db3298 100644 --- a/openair2/LAYER2/PROTO_AGENT/du_test.c +++ b/openair2/LAYER2/PROTO_AGENT/du_test.c @@ -40,7 +40,7 @@ rlc_op_status_t rlc_data_req (const protocol_ctxt_t* const ctxt_pP, fwrite(sdu_pP->data, sdu_sizeP, 1, stdout); fflush(stdout); free_mem_block(sdu_pP, __func__); - free(ctxt_pP); + //free(ctxt_pP); return 0; } -- 2.26.2