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_dnai_information_t *OpenAPI_dnai_information_create(
|
|||
int no_local_psa_change_ind
|
||||
)
|
||||
{
|
||||
OpenAPI_dnai_information_t *dnai_information_local_var = OpenAPI_malloc(sizeof(OpenAPI_dnai_information_t));
|
||||
if (!dnai_information_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_dnai_information_t *dnai_information_local_var = ogs_malloc(sizeof(OpenAPI_dnai_information_t));
|
||||
ogs_assert(dnai_information_local_var);
|
||||
|
||||
dnai_information_local_var->dnai = dnai;
|
||||
dnai_information_local_var->is_no_dnai_change_ind = is_no_dnai_change_ind;
|
||||
dnai_information_local_var->no_dnai_change_ind = no_dnai_change_ind;
|
||||
|
|
@ -101,7 +100,7 @@ OpenAPI_dnai_information_t *OpenAPI_dnai_information_parseFromJSON(cJSON *dnai_i
|
|||
}
|
||||
|
||||
dnai_information_local_var = OpenAPI_dnai_information_create (
|
||||
ogs_strdup_or_assert(dnai->valuestring),
|
||||
ogs_strdup(dnai->valuestring),
|
||||
no_dnai_change_ind ? true : false,
|
||||
no_dnai_change_ind ? no_dnai_change_ind->valueint : 0,
|
||||
no_local_psa_change_ind ? true : false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue