mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 14:20: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
|
|
@ -9,10 +9,9 @@ OpenAPI_notification_item_t *OpenAPI_notification_item_create(
|
|||
OpenAPI_list_t *notif_items
|
||||
)
|
||||
{
|
||||
OpenAPI_notification_item_t *notification_item_local_var = OpenAPI_malloc(sizeof(OpenAPI_notification_item_t));
|
||||
if (!notification_item_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_notification_item_t *notification_item_local_var = ogs_malloc(sizeof(OpenAPI_notification_item_t));
|
||||
ogs_assert(notification_item_local_var);
|
||||
|
||||
notification_item_local_var->resource_id = resource_id;
|
||||
notification_item_local_var->notif_items = notif_items;
|
||||
|
||||
|
|
@ -110,7 +109,7 @@ OpenAPI_notification_item_t *OpenAPI_notification_item_parseFromJSON(cJSON *noti
|
|||
}
|
||||
|
||||
notification_item_local_var = OpenAPI_notification_item_create (
|
||||
ogs_strdup_or_assert(resource_id->valuestring),
|
||||
ogs_strdup(resource_id->valuestring),
|
||||
notif_itemsList
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue