mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +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
|
|
@ -13,10 +13,9 @@ OpenAPI_data_change_notify_t *OpenAPI_data_change_notify_create(
|
|||
OpenAPI_list_t *subscription_data_subscriptions
|
||||
)
|
||||
{
|
||||
OpenAPI_data_change_notify_t *data_change_notify_local_var = OpenAPI_malloc(sizeof(OpenAPI_data_change_notify_t));
|
||||
if (!data_change_notify_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_data_change_notify_t *data_change_notify_local_var = ogs_malloc(sizeof(OpenAPI_data_change_notify_t));
|
||||
ogs_assert(data_change_notify_local_var);
|
||||
|
||||
data_change_notify_local_var->original_callback_reference = original_callback_reference;
|
||||
data_change_notify_local_var->ue_id = ue_id;
|
||||
data_change_notify_local_var->notify_items = notify_items;
|
||||
|
|
@ -183,7 +182,7 @@ OpenAPI_data_change_notify_t *OpenAPI_data_change_notify_parseFromJSON(cJSON *da
|
|||
ogs_error("OpenAPI_data_change_notify_parseFromJSON() failed [original_callback_reference]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(original_callback_referenceList , ogs_strdup_or_assert(original_callback_reference_local->valuestring));
|
||||
OpenAPI_list_add(original_callback_referenceList , ogs_strdup(original_callback_reference_local->valuestring));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -274,7 +273,7 @@ OpenAPI_data_change_notify_t *OpenAPI_data_change_notify_parseFromJSON(cJSON *da
|
|||
|
||||
data_change_notify_local_var = OpenAPI_data_change_notify_create (
|
||||
original_callback_reference ? original_callback_referenceList : NULL,
|
||||
ue_id ? ogs_strdup_or_assert(ue_id->valuestring) : NULL,
|
||||
ue_id ? ogs_strdup(ue_id->valuestring) : NULL,
|
||||
notify_items ? notify_itemsList : NULL,
|
||||
sdm_subscription ? sdm_subscription_local_nonprim : NULL,
|
||||
additional_sdm_subscriptions ? additional_sdm_subscriptionsList : NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue