mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 23:37:22 +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
|
|
@ -9,10 +9,9 @@ OpenAPI_eps_iwk_pgw_t *OpenAPI_eps_iwk_pgw_create(
|
|||
char *smf_instance_id
|
||||
)
|
||||
{
|
||||
OpenAPI_eps_iwk_pgw_t *eps_iwk_pgw_local_var = OpenAPI_malloc(sizeof(OpenAPI_eps_iwk_pgw_t));
|
||||
if (!eps_iwk_pgw_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_eps_iwk_pgw_t *eps_iwk_pgw_local_var = ogs_malloc(sizeof(OpenAPI_eps_iwk_pgw_t));
|
||||
ogs_assert(eps_iwk_pgw_local_var);
|
||||
|
||||
eps_iwk_pgw_local_var->pgw_fqdn = pgw_fqdn;
|
||||
eps_iwk_pgw_local_var->smf_instance_id = smf_instance_id;
|
||||
|
||||
|
|
@ -80,8 +79,8 @@ OpenAPI_eps_iwk_pgw_t *OpenAPI_eps_iwk_pgw_parseFromJSON(cJSON *eps_iwk_pgwJSON)
|
|||
}
|
||||
|
||||
eps_iwk_pgw_local_var = OpenAPI_eps_iwk_pgw_create (
|
||||
ogs_strdup_or_assert(pgw_fqdn->valuestring),
|
||||
ogs_strdup_or_assert(smf_instance_id->valuestring)
|
||||
ogs_strdup(pgw_fqdn->valuestring),
|
||||
ogs_strdup(smf_instance_id->valuestring)
|
||||
);
|
||||
|
||||
return eps_iwk_pgw_local_var;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue