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_flow_info_t *OpenAPI_flow_info_create(
OpenAPI_list_t *flow_descriptions
)
{
OpenAPI_flow_info_t *flow_info_local_var = OpenAPI_malloc(sizeof(OpenAPI_flow_info_t));
if (!flow_info_local_var) {
return NULL;
}
OpenAPI_flow_info_t *flow_info_local_var = ogs_malloc(sizeof(OpenAPI_flow_info_t));
ogs_assert(flow_info_local_var);
flow_info_local_var->flow_id = flow_id;
flow_info_local_var->flow_descriptions = flow_descriptions;
@ -97,7 +96,7 @@ OpenAPI_flow_info_t *OpenAPI_flow_info_parseFromJSON(cJSON *flow_infoJSON)
ogs_error("OpenAPI_flow_info_parseFromJSON() failed [flow_descriptions]");
goto end;
}
OpenAPI_list_add(flow_descriptionsList , ogs_strdup_or_assert(flow_descriptions_local->valuestring));
OpenAPI_list_add(flow_descriptionsList , ogs_strdup(flow_descriptions_local->valuestring));
}
}