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

@ -14,10 +14,9 @@ OpenAPI_pws_information_t *OpenAPI_pws_information_create(
char *omc_id
)
{
OpenAPI_pws_information_t *pws_information_local_var = OpenAPI_malloc(sizeof(OpenAPI_pws_information_t));
if (!pws_information_local_var) {
return NULL;
}
OpenAPI_pws_information_t *pws_information_local_var = ogs_malloc(sizeof(OpenAPI_pws_information_t));
ogs_assert(pws_information_local_var);
pws_information_local_var->message_identifier = message_identifier;
pws_information_local_var->serial_number = serial_number;
pws_information_local_var->pws_container = pws_container;
@ -197,7 +196,7 @@ OpenAPI_pws_information_t *OpenAPI_pws_information_parseFromJSON(cJSON *pws_info
bc_empty_area_list ? bc_empty_area_listList : NULL,
send_ran_response ? true : false,
send_ran_response ? send_ran_response->valueint : 0,
omc_id ? ogs_strdup_or_assert(omc_id->valuestring) : NULL
omc_id ? ogs_strdup(omc_id->valuestring) : NULL
);
return pws_information_local_var;