From bcba876fcba1033e07d41248688d25b2d0ef6adc Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Fri, 6 Dec 2024 10:00:21 +0100 Subject: [PATCH] Do not free inside gnb_du_configuration_update_f1ap() The consumer of this function just passes a pointer to something to be sent. This function should not free this memory, it's simply not it's task. This is the same bug as above in "CU_handle_gNB_DU_CONFIGURATION_UPDATE(): don't free the message of RRC" --- openair2/LAYER2/NR_MAC_gNB/mac_rrc_ul_f1ap.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/mac_rrc_ul_f1ap.c b/openair2/LAYER2/NR_MAC_gNB/mac_rrc_ul_f1ap.c index 99e6f02a57..544ab3889c 100644 --- a/openair2/LAYER2/NR_MAC_gNB/mac_rrc_ul_f1ap.c +++ b/openair2/LAYER2/NR_MAC_gNB/mac_rrc_ul_f1ap.c @@ -82,8 +82,6 @@ static void gnb_du_configuration_update_f1ap(const f1ap_gnb_du_configuration_upd f1ap_gnb_du_configuration_update_t cp = cp_f1ap_du_configuration_update(upd); /* transfer to ITTI message */ F1AP_GNB_DU_CONFIGURATION_UPDATE(msg) = cp; - /* free after copy */ - free_f1ap_du_configuration_update(upd); /* send to RRC task */ itti_send_msg_to_task(TASK_DU_F1, 0, msg); }