mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30: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
|
|
@ -32,10 +32,9 @@ OpenAPI_mm_context_t *OpenAPI_mm_context_create(
|
|||
OpenAPI_list_t *pending_nssai_mapping_list
|
||||
)
|
||||
{
|
||||
OpenAPI_mm_context_t *mm_context_local_var = OpenAPI_malloc(sizeof(OpenAPI_mm_context_t));
|
||||
if (!mm_context_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_mm_context_t *mm_context_local_var = ogs_malloc(sizeof(OpenAPI_mm_context_t));
|
||||
ogs_assert(mm_context_local_var);
|
||||
|
||||
mm_context_local_var->access_type = access_type;
|
||||
mm_context_local_var->nas_security_mode = nas_security_mode;
|
||||
mm_context_local_var->eps_nas_security_mode = eps_nas_security_mode;
|
||||
|
|
@ -539,7 +538,7 @@ OpenAPI_mm_context_t *OpenAPI_mm_context_parseFromJSON(cJSON *mm_contextJSON)
|
|||
ogs_error("OpenAPI_mm_context_parseFromJSON() failed [ns_instance_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(ns_instance_listList , ogs_strdup_or_assert(ns_instance_list_local->valuestring));
|
||||
OpenAPI_list_add(ns_instance_listList , ogs_strdup(ns_instance_list_local->valuestring));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -678,7 +677,7 @@ OpenAPI_mm_context_t *OpenAPI_mm_context_parseFromJSON(cJSON *mm_contextJSON)
|
|||
ue_differentiation_info ? ue_differentiation_info_local_nonprim : NULL,
|
||||
plmn_assi_ue_radio_cap_id ? plmn_assi_ue_radio_cap_id->valueint : 0,
|
||||
man_assi_ue_radio_cap_id ? man_assi_ue_radio_cap_id->valueint : 0,
|
||||
ucmf_dic_entry_id ? ogs_strdup_or_assert(ucmf_dic_entry_id->valuestring) : NULL,
|
||||
ucmf_dic_entry_id ? ogs_strdup(ucmf_dic_entry_id->valuestring) : NULL,
|
||||
n3_iwf_id ? n3_iwf_id_local_nonprim : NULL,
|
||||
wagf_id ? wagf_id_local_nonprim : NULL,
|
||||
tngf_id ? tngf_id_local_nonprim : NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue