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
|
|
@ -9,10 +9,9 @@ OpenAPI_network_slice_cond_t *OpenAPI_network_slice_cond_create(
|
|||
OpenAPI_list_t *nsi_list
|
||||
)
|
||||
{
|
||||
OpenAPI_network_slice_cond_t *network_slice_cond_local_var = OpenAPI_malloc(sizeof(OpenAPI_network_slice_cond_t));
|
||||
if (!network_slice_cond_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_network_slice_cond_t *network_slice_cond_local_var = ogs_malloc(sizeof(OpenAPI_network_slice_cond_t));
|
||||
ogs_assert(network_slice_cond_local_var);
|
||||
|
||||
network_slice_cond_local_var->snssai_list = snssai_list;
|
||||
network_slice_cond_local_var->nsi_list = nsi_list;
|
||||
|
||||
|
|
@ -128,7 +127,7 @@ OpenAPI_network_slice_cond_t *OpenAPI_network_slice_cond_parseFromJSON(cJSON *ne
|
|||
ogs_error("OpenAPI_network_slice_cond_parseFromJSON() failed [nsi_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(nsi_listList , ogs_strdup_or_assert(nsi_list_local->valuestring));
|
||||
OpenAPI_list_add(nsi_listList , ogs_strdup(nsi_list_local->valuestring));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue