mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 14:20: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
|
|
@ -10,10 +10,9 @@ OpenAPI_nrppa_information_t *OpenAPI_nrppa_information_create(
|
|||
char *service_instance_id
|
||||
)
|
||||
{
|
||||
OpenAPI_nrppa_information_t *nrppa_information_local_var = OpenAPI_malloc(sizeof(OpenAPI_nrppa_information_t));
|
||||
if (!nrppa_information_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_nrppa_information_t *nrppa_information_local_var = ogs_malloc(sizeof(OpenAPI_nrppa_information_t));
|
||||
ogs_assert(nrppa_information_local_var);
|
||||
|
||||
nrppa_information_local_var->nf_id = nf_id;
|
||||
nrppa_information_local_var->nrppa_pdu = nrppa_pdu;
|
||||
nrppa_information_local_var->service_instance_id = service_instance_id;
|
||||
|
|
@ -103,9 +102,9 @@ OpenAPI_nrppa_information_t *OpenAPI_nrppa_information_parseFromJSON(cJSON *nrpp
|
|||
}
|
||||
|
||||
nrppa_information_local_var = OpenAPI_nrppa_information_create (
|
||||
ogs_strdup_or_assert(nf_id->valuestring),
|
||||
ogs_strdup(nf_id->valuestring),
|
||||
nrppa_pdu_local_nonprim,
|
||||
service_instance_id ? ogs_strdup_or_assert(service_instance_id->valuestring) : NULL
|
||||
service_instance_id ? ogs_strdup(service_instance_id->valuestring) : NULL
|
||||
);
|
||||
|
||||
return nrppa_information_local_var;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue