mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +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_ue_context_relocate_data_t *OpenAPI_ue_context_relocate_data_create(
|
|||
char *supported_features
|
||||
)
|
||||
{
|
||||
OpenAPI_ue_context_relocate_data_t *ue_context_relocate_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_ue_context_relocate_data_t));
|
||||
if (!ue_context_relocate_data_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_ue_context_relocate_data_t *ue_context_relocate_data_local_var = ogs_malloc(sizeof(OpenAPI_ue_context_relocate_data_t));
|
||||
ogs_assert(ue_context_relocate_data_local_var);
|
||||
|
||||
ue_context_relocate_data_local_var->ue_context = ue_context;
|
||||
ue_context_relocate_data_local_var->target_id = target_id;
|
||||
ue_context_relocate_data_local_var->source_to_target_data = source_to_target_data;
|
||||
|
|
@ -255,7 +254,7 @@ OpenAPI_ue_context_relocate_data_t *OpenAPI_ue_context_relocate_data_parseFromJS
|
|||
pdu_session_list ? pdu_session_listList : NULL,
|
||||
ue_radio_capability ? ue_radio_capability_local_nonprim : NULL,
|
||||
ngap_cause ? ngap_cause_local_nonprim : NULL,
|
||||
supported_features ? ogs_strdup_or_assert(supported_features->valuestring) : NULL
|
||||
supported_features ? ogs_strdup(supported_features->valuestring) : NULL
|
||||
);
|
||||
|
||||
return ue_context_relocate_data_local_var;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue