Fix Coverity Scan CID 340209 (Variable message_p going out of scope leaks the storage it points to.)

This commit is contained in:
Dong Anyuan
2019-06-20 14:02:45 +09:00
parent 9b80070a59
commit a70288769a
@@ -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);
} else {
CU_send_F1_SETUP_FAILURE(instance);
itti_free(TASK_RRC_ENB,message_p);
return -1;
}
return 0;