mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 05:10:10 +00:00
Use talloc for all memory pool (#1263)
This commit is contained in:
parent
49d9ed03c7
commit
b988e7edce
768 changed files with 4632 additions and 4901 deletions
|
|
@ -15,10 +15,9 @@ OpenAPI_sm_policy_delete_data_t *OpenAPI_sm_policy_delete_data_create(
|
|||
OpenAPI_list_t *qos_mon_reports
|
||||
)
|
||||
{
|
||||
OpenAPI_sm_policy_delete_data_t *sm_policy_delete_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_sm_policy_delete_data_t));
|
||||
if (!sm_policy_delete_data_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_sm_policy_delete_data_t *sm_policy_delete_data_local_var = ogs_malloc(sizeof(OpenAPI_sm_policy_delete_data_t));
|
||||
ogs_assert(sm_policy_delete_data_local_var);
|
||||
|
||||
sm_policy_delete_data_local_var->user_location_info = user_location_info;
|
||||
sm_policy_delete_data_local_var->ue_time_zone = ue_time_zone;
|
||||
sm_policy_delete_data_local_var->serving_network = serving_network;
|
||||
|
|
@ -294,9 +293,9 @@ OpenAPI_sm_policy_delete_data_t *OpenAPI_sm_policy_delete_data_parseFromJSON(cJS
|
|||
|
||||
sm_policy_delete_data_local_var = OpenAPI_sm_policy_delete_data_create (
|
||||
user_location_info ? user_location_info_local_nonprim : NULL,
|
||||
ue_time_zone ? ogs_strdup_or_assert(ue_time_zone->valuestring) : NULL,
|
||||
ue_time_zone ? ogs_strdup(ue_time_zone->valuestring) : NULL,
|
||||
serving_network ? serving_network_local_nonprim : NULL,
|
||||
user_location_info_time ? ogs_strdup_or_assert(user_location_info_time->valuestring) : NULL,
|
||||
user_location_info_time ? ogs_strdup(user_location_info_time->valuestring) : NULL,
|
||||
ran_nas_rel_causes ? ran_nas_rel_causesList : NULL,
|
||||
accu_usage_reports ? accu_usage_reportsList : NULL,
|
||||
pdu_sess_rel_cause ? pdu_sess_rel_causeVariable : 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue