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_plmn_operator_class_t *OpenAPI_plmn_operator_class_create(
|
|||
OpenAPI_list_t *lcs_client_ids
|
||||
)
|
||||
{
|
||||
OpenAPI_plmn_operator_class_t *plmn_operator_class_local_var = OpenAPI_malloc(sizeof(OpenAPI_plmn_operator_class_t));
|
||||
if (!plmn_operator_class_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_plmn_operator_class_t *plmn_operator_class_local_var = ogs_malloc(sizeof(OpenAPI_plmn_operator_class_t));
|
||||
ogs_assert(plmn_operator_class_local_var);
|
||||
|
||||
plmn_operator_class_local_var->lcs_client_class = lcs_client_class;
|
||||
plmn_operator_class_local_var->lcs_client_ids = lcs_client_ids;
|
||||
|
||||
|
|
@ -100,7 +99,7 @@ OpenAPI_plmn_operator_class_t *OpenAPI_plmn_operator_class_parseFromJSON(cJSON *
|
|||
ogs_error("OpenAPI_plmn_operator_class_parseFromJSON() failed [lcs_client_ids]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(lcs_client_idsList , ogs_strdup_or_assert(lcs_client_ids_local->valuestring));
|
||||
OpenAPI_list_add(lcs_client_idsList , ogs_strdup(lcs_client_ids_local->valuestring));
|
||||
}
|
||||
|
||||
plmn_operator_class_local_var = OpenAPI_plmn_operator_class_create (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue