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

@ -17,10 +17,9 @@ OpenAPI_n1_message_notification_t *OpenAPI_n1_message_notification_create(
OpenAPI_ncgi_t *ncgi
)
{
OpenAPI_n1_message_notification_t *n1_message_notification_local_var = OpenAPI_malloc(sizeof(OpenAPI_n1_message_notification_t));
if (!n1_message_notification_local_var) {
return NULL;
}
OpenAPI_n1_message_notification_t *n1_message_notification_local_var = ogs_malloc(sizeof(OpenAPI_n1_message_notification_t));
ogs_assert(n1_message_notification_local_var);
n1_message_notification_local_var->n1_notify_subscription_id = n1_notify_subscription_id;
n1_message_notification_local_var->n1_message_container = n1_message_container;
n1_message_notification_local_var->lcs_correlation_id = lcs_correlation_id;
@ -234,11 +233,11 @@ OpenAPI_n1_message_notification_t *OpenAPI_n1_message_notification_parseFromJSON
}
n1_message_notification_local_var = OpenAPI_n1_message_notification_create (
n1_notify_subscription_id ? ogs_strdup_or_assert(n1_notify_subscription_id->valuestring) : NULL,
n1_notify_subscription_id ? ogs_strdup(n1_notify_subscription_id->valuestring) : NULL,
n1_message_container_local_nonprim,
lcs_correlation_id ? ogs_strdup_or_assert(lcs_correlation_id->valuestring) : NULL,
lcs_correlation_id ? ogs_strdup(lcs_correlation_id->valuestring) : NULL,
registration_ctxt_container ? registration_ctxt_container_local_nonprim : NULL,
new_lmf_identification ? ogs_strdup_or_assert(new_lmf_identification->valuestring) : NULL,
new_lmf_identification ? ogs_strdup(new_lmf_identification->valuestring) : NULL,
guami ? guami_local_nonprim : NULL,
c_io_t5_gs_optimisation ? true : false,
c_io_t5_gs_optimisation ? c_io_t5_gs_optimisation->valueint : 0,