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

@ -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
);