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_inline_object_3_t *OpenAPI_inline_object_3_create(
OpenAPI_binary_t* binary_data_n1_message
)
{
OpenAPI_inline_object_3_t *inline_object_3_local_var = OpenAPI_malloc(sizeof(OpenAPI_inline_object_3_t));
if (!inline_object_3_local_var) {
return NULL;
}
OpenAPI_inline_object_3_t *inline_object_3_local_var = ogs_malloc(sizeof(OpenAPI_inline_object_3_t));
ogs_assert(inline_object_3_local_var);
inline_object_3_local_var->json_data = json_data;
inline_object_3_local_var->binary_data_n1_message = binary_data_n1_message;
@ -78,7 +77,8 @@ OpenAPI_inline_object_3_t *OpenAPI_inline_object_3_parseFromJSON(cJSON *inline_o
cJSON *binary_data_n1_message = cJSON_GetObjectItemCaseSensitive(inline_object_3JSON, "binaryDataN1Message");
OpenAPI_binary_t* decoded_str_binary_data_n1_message = OpenAPI_malloc(sizeof(OpenAPI_binary_t));
OpenAPI_binary_t* decoded_str_binary_data_n1_message = ogs_malloc(sizeof(OpenAPI_binary_t));
ogs_assert(decoded_str_binary_data_n1_message);
if (binary_data_n1_message) {
if (!cJSON_IsString(binary_data_n1_message)) {
ogs_error("OpenAPI_inline_object_3_parseFromJSON() failed [binary_data_n1_message]");