Use talloc for all memory pool (#1263)

This commit is contained in:
Sukchan Lee 2022-01-04 08:29:18 +09:00
parent 49d9ed03c7
commit b988e7edce
768 changed files with 4632 additions and 4901 deletions

View file

@ -23,10 +23,9 @@ OpenAPI_traffic_control_data_t *OpenAPI_traffic_control_data_create(
OpenAPI_multicast_access_control_t *mul_acc_ctrl
)
{
OpenAPI_traffic_control_data_t *traffic_control_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_traffic_control_data_t));
if (!traffic_control_data_local_var) {
return NULL;
}
OpenAPI_traffic_control_data_t *traffic_control_data_local_var = ogs_malloc(sizeof(OpenAPI_traffic_control_data_t));
ogs_assert(traffic_control_data_local_var);
traffic_control_data_local_var->tc_id = tc_id;
traffic_control_data_local_var->flow_status = flow_status;
traffic_control_data_local_var->redirect_info = redirect_info;
@ -392,14 +391,14 @@ OpenAPI_traffic_control_data_t *OpenAPI_traffic_control_data_parseFromJSON(cJSON
}
traffic_control_data_local_var = OpenAPI_traffic_control_data_create (
ogs_strdup_or_assert(tc_id->valuestring),
ogs_strdup(tc_id->valuestring),
flow_status ? flow_statusVariable : 0,
redirect_info ? redirect_info_local_nonprim : NULL,
add_redirect_info ? add_redirect_infoList : NULL,
mute_notif ? true : false,
mute_notif ? mute_notif->valueint : 0,
traffic_steering_pol_id_dl ? ogs_strdup_or_assert(traffic_steering_pol_id_dl->valuestring) : NULL,
traffic_steering_pol_id_ul ? ogs_strdup_or_assert(traffic_steering_pol_id_ul->valuestring) : NULL,
traffic_steering_pol_id_dl ? ogs_strdup(traffic_steering_pol_id_dl->valuestring) : NULL,
traffic_steering_pol_id_ul ? ogs_strdup(traffic_steering_pol_id_ul->valuestring) : NULL,
route_to_locs ? route_to_locsList : NULL,
traff_corre_ind ? true : false,
traff_corre_ind ? traff_corre_ind->valueint : 0,