mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-03 05:40: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
|
|
@ -12,10 +12,9 @@ OpenAPI_v2x_context_t *OpenAPI_v2x_context_create(
|
|||
OpenAPI_pc5_qo_s_para_t *pc5_qo_s_para
|
||||
)
|
||||
{
|
||||
OpenAPI_v2x_context_t *v2x_context_local_var = OpenAPI_malloc(sizeof(OpenAPI_v2x_context_t));
|
||||
if (!v2x_context_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_v2x_context_t *v2x_context_local_var = ogs_malloc(sizeof(OpenAPI_v2x_context_t));
|
||||
ogs_assert(v2x_context_local_var);
|
||||
|
||||
v2x_context_local_var->nr_v2x_services_auth = nr_v2x_services_auth;
|
||||
v2x_context_local_var->lte_v2x_services_auth = lte_v2x_services_auth;
|
||||
v2x_context_local_var->nr_ue_sidelink_ambr = nr_ue_sidelink_ambr;
|
||||
|
|
@ -151,8 +150,8 @@ OpenAPI_v2x_context_t *OpenAPI_v2x_context_parseFromJSON(cJSON *v2x_contextJSON)
|
|||
v2x_context_local_var = OpenAPI_v2x_context_create (
|
||||
nr_v2x_services_auth ? nr_v2x_services_auth_local_nonprim : NULL,
|
||||
lte_v2x_services_auth ? lte_v2x_services_auth_local_nonprim : NULL,
|
||||
nr_ue_sidelink_ambr ? ogs_strdup_or_assert(nr_ue_sidelink_ambr->valuestring) : NULL,
|
||||
lte_ue_sidelink_ambr ? ogs_strdup_or_assert(lte_ue_sidelink_ambr->valuestring) : NULL,
|
||||
nr_ue_sidelink_ambr ? ogs_strdup(nr_ue_sidelink_ambr->valuestring) : NULL,
|
||||
lte_ue_sidelink_ambr ? ogs_strdup(lte_ue_sidelink_ambr->valuestring) : NULL,
|
||||
pc5_qo_s_para ? pc5_qo_s_para_local_nonprim : NULL
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue