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"
This commit is contained in:
@@ -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);
|
f1ap_gnb_du_configuration_update_t cp = cp_f1ap_du_configuration_update(upd);
|
||||||
/* transfer to ITTI message */
|
/* transfer to ITTI message */
|
||||||
F1AP_GNB_DU_CONFIGURATION_UPDATE(msg) = cp;
|
F1AP_GNB_DU_CONFIGURATION_UPDATE(msg) = cp;
|
||||||
/* free after copy */
|
|
||||||
free_f1ap_du_configuration_update(upd);
|
|
||||||
/* send to RRC task */
|
/* send to RRC task */
|
||||||
itti_send_msg_to_task(TASK_DU_F1, 0, msg);
|
itti_send_msg_to_task(TASK_DU_F1, 0, msg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user