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

@ -11,10 +11,9 @@ OpenAPI_v2x_subscription_data_1_t *OpenAPI_v2x_subscription_data_1_create(
char *lte_pc5_ambr
)
{
OpenAPI_v2x_subscription_data_1_t *v2x_subscription_data_1_local_var = OpenAPI_malloc(sizeof(OpenAPI_v2x_subscription_data_1_t));
if (!v2x_subscription_data_1_local_var) {
return NULL;
}
OpenAPI_v2x_subscription_data_1_t *v2x_subscription_data_1_local_var = ogs_malloc(sizeof(OpenAPI_v2x_subscription_data_1_t));
ogs_assert(v2x_subscription_data_1_local_var);
v2x_subscription_data_1_local_var->nr_v2x_services_auth = nr_v2x_services_auth;
v2x_subscription_data_1_local_var->lte_v2x_services_auth = lte_v2x_services_auth;
v2x_subscription_data_1_local_var->nr_ue_pc5_ambr = nr_ue_pc5_ambr;
@ -128,8 +127,8 @@ OpenAPI_v2x_subscription_data_1_t *OpenAPI_v2x_subscription_data_1_parseFromJSON
v2x_subscription_data_1_local_var = OpenAPI_v2x_subscription_data_1_create (
nr_v2x_services_auth ? nr_v2x_services_auth_local_nonprim : NULL,
lte_v2x_services_auth ? lte_v2x_services_auth_local_nonprim : NULL,
nr_ue_pc5_ambr ? ogs_strdup_or_assert(nr_ue_pc5_ambr->valuestring) : NULL,
lte_pc5_ambr ? ogs_strdup_or_assert(lte_pc5_ambr->valuestring) : NULL
nr_ue_pc5_ambr ? ogs_strdup(nr_ue_pc5_ambr->valuestring) : NULL,
lte_pc5_ambr ? ogs_strdup(lte_pc5_ambr->valuestring) : NULL
);
return v2x_subscription_data_1_local_var;