mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 13:20:08 +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
|
|
@ -18,10 +18,9 @@ OpenAPI_expected_ue_behaviour_data_1_t *OpenAPI_expected_ue_behaviour_data_1_cre
|
|||
char *validity_time
|
||||
)
|
||||
{
|
||||
OpenAPI_expected_ue_behaviour_data_1_t *expected_ue_behaviour_data_1_local_var = OpenAPI_malloc(sizeof(OpenAPI_expected_ue_behaviour_data_1_t));
|
||||
if (!expected_ue_behaviour_data_1_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_expected_ue_behaviour_data_1_t *expected_ue_behaviour_data_1_local_var = ogs_malloc(sizeof(OpenAPI_expected_ue_behaviour_data_1_t));
|
||||
ogs_assert(expected_ue_behaviour_data_1_local_var);
|
||||
|
||||
expected_ue_behaviour_data_1_local_var->stationary_indication = stationary_indication;
|
||||
expected_ue_behaviour_data_1_local_var->is_communication_duration_time = is_communication_duration_time;
|
||||
expected_ue_behaviour_data_1_local_var->communication_duration_time = communication_duration_time;
|
||||
|
|
@ -266,7 +265,7 @@ OpenAPI_expected_ue_behaviour_data_1_t *OpenAPI_expected_ue_behaviour_data_1_par
|
|||
expected_umts ? expected_umtsList : NULL,
|
||||
traffic_profile ? traffic_profileVariable : 0,
|
||||
battery_indication ? battery_indication_local_nonprim : NULL,
|
||||
validity_time ? ogs_strdup_or_assert(validity_time->valuestring) : NULL
|
||||
validity_time ? ogs_strdup(validity_time->valuestring) : NULL
|
||||
);
|
||||
|
||||
return expected_ue_behaviour_data_1_local_var;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue