Use talloc for all memory pool (#1263)

This commit is contained in:
Sukchan Lee 2022-01-04 08:29:18 +09:00
parent 49d9ed03c7
commit b988e7edce
768 changed files with 4632 additions and 4901 deletions

View file

@ -12,10 +12,9 @@ OpenAPI_pgw_info_t *OpenAPI_pgw_info_create(
int epdg_ind
)
{
OpenAPI_pgw_info_t *pgw_info_local_var = OpenAPI_malloc(sizeof(OpenAPI_pgw_info_t));
if (!pgw_info_local_var) {
return NULL;
}
OpenAPI_pgw_info_t *pgw_info_local_var = ogs_malloc(sizeof(OpenAPI_pgw_info_t));
ogs_assert(pgw_info_local_var);
pgw_info_local_var->dnn = dnn;
pgw_info_local_var->pgw_fqdn = pgw_fqdn;
pgw_info_local_var->plmn_id = plmn_id;
@ -123,8 +122,8 @@ OpenAPI_pgw_info_t *OpenAPI_pgw_info_parseFromJSON(cJSON *pgw_infoJSON)
}
pgw_info_local_var = OpenAPI_pgw_info_create (
ogs_strdup_or_assert(dnn->valuestring),
ogs_strdup_or_assert(pgw_fqdn->valuestring),
ogs_strdup(dnn->valuestring),
ogs_strdup(pgw_fqdn->valuestring),
plmn_id ? plmn_id_local_nonprim : NULL,
epdg_ind ? true : false,
epdg_ind ? epdg_ind->valueint : 0