Fix Coverity Scan CID 340209 (Variable message_p going out of scope leaks the storage it points to.)
This commit is contained in:
@@ -248,6 +248,7 @@ int CU_handle_F1_SETUP_REQUEST(instance_t instance,
|
|||||||
itti_send_msg_to_task(TASK_RRC_ENB, ENB_MODULE_ID_TO_INSTANCE(instance), message_p);
|
itti_send_msg_to_task(TASK_RRC_ENB, ENB_MODULE_ID_TO_INSTANCE(instance), message_p);
|
||||||
} else {
|
} else {
|
||||||
CU_send_F1_SETUP_FAILURE(instance);
|
CU_send_F1_SETUP_FAILURE(instance);
|
||||||
|
itti_free(TASK_RRC_ENB,message_p);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user