message->local_port_len = tmp_size;
message->local_port_name = strdup(local_port);
if (message->local_port_name == NULL) {
-/* LCOV_EXCL_START */
_LOGE("local_port_name strdup fail");
ret = MESSAGE_PORT_ERROR_OUT_OF_MEMORY;
goto out;
-/* LCOV_EXCL_STOP */
}
message->is_bidirection = is_bidirection;
message->local_trusted = local_trusted;
message->data_len = data_len;
message->data = (bundle_raw *)strdup((const char *)kb_data);
if (message->data == NULL) {
-/* LCOV_EXCL_START */
_LOGE("data strdup fail");
ret = MESSAGE_PORT_ERROR_OUT_OF_MEMORY;
goto out;
-/* LCOV_EXCL_STOP */
}
if (port_info->delay_src_id == 0) {
delay_info = (delay_port_info *)calloc(1, sizeof(delay_port_info));
if (delay_info == NULL) {
-/* LCOV_EXCL_START */
_LOGE("out of memory");
ret = MESSAGE_PORT_ERROR_OUT_OF_MEMORY;
goto out;
-/* LCOV_EXCL_STOP */
}
ret = __create_port_key_info(port_info, &delay_info->key_info);