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_confirmation_data_t *OpenAPI_confirmation_data_create(
char *supported_features
)
{
OpenAPI_confirmation_data_t *confirmation_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_confirmation_data_t));
if (!confirmation_data_local_var) {
return NULL;
}
OpenAPI_confirmation_data_t *confirmation_data_local_var = ogs_malloc(sizeof(OpenAPI_confirmation_data_t));
ogs_assert(confirmation_data_local_var);
confirmation_data_local_var->res_star = res_star;
confirmation_data_local_var->supported_features = supported_features;
@ -80,8 +79,8 @@ OpenAPI_confirmation_data_t *OpenAPI_confirmation_data_parseFromJSON(cJSON *conf
}
confirmation_data_local_var = OpenAPI_confirmation_data_create (
ogs_strdup_or_assert(res_star->valuestring),
supported_features ? ogs_strdup_or_assert(supported_features->valuestring) : NULL
ogs_strdup(res_star->valuestring),
supported_features ? ogs_strdup(supported_features->valuestring) : NULL
);
return confirmation_data_local_var;