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

@ -10,10 +10,9 @@ OpenAPI_confirmation_data_response_t *OpenAPI_confirmation_data_response_create(
char *kseaf
)
{
OpenAPI_confirmation_data_response_t *confirmation_data_response_local_var = OpenAPI_malloc(sizeof(OpenAPI_confirmation_data_response_t));
if (!confirmation_data_response_local_var) {
return NULL;
}
OpenAPI_confirmation_data_response_t *confirmation_data_response_local_var = ogs_malloc(sizeof(OpenAPI_confirmation_data_response_t));
ogs_assert(confirmation_data_response_local_var);
confirmation_data_response_local_var->auth_result = auth_result;
confirmation_data_response_local_var->supi = supi;
confirmation_data_response_local_var->kseaf = kseaf;
@ -101,8 +100,8 @@ OpenAPI_confirmation_data_response_t *OpenAPI_confirmation_data_response_parseFr
confirmation_data_response_local_var = OpenAPI_confirmation_data_response_create (
auth_resultVariable,
supi ? ogs_strdup_or_assert(supi->valuestring) : NULL,
kseaf ? ogs_strdup_or_assert(kseaf->valuestring) : NULL
supi ? ogs_strdup(supi->valuestring) : NULL,
kseaf ? ogs_strdup(kseaf->valuestring) : NULL
);
return confirmation_data_response_local_var;