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_authentication_info_request_t *OpenAPI_authentication_info_request_creat
int n5gc_ind
)
{
OpenAPI_authentication_info_request_t *authentication_info_request_local_var = OpenAPI_malloc(sizeof(OpenAPI_authentication_info_request_t));
if (!authentication_info_request_local_var) {
return NULL;
}
OpenAPI_authentication_info_request_t *authentication_info_request_local_var = ogs_malloc(sizeof(OpenAPI_authentication_info_request_t));
ogs_assert(authentication_info_request_local_var);
authentication_info_request_local_var->supported_features = supported_features;
authentication_info_request_local_var->serving_network_name = serving_network_name;
authentication_info_request_local_var->resynchronization_info = resynchronization_info;
@ -170,7 +169,7 @@ OpenAPI_authentication_info_request_t *OpenAPI_authentication_info_request_parse
ogs_error("OpenAPI_authentication_info_request_parseFromJSON() failed [cell_cag_info]");
goto end;
}
OpenAPI_list_add(cell_cag_infoList , ogs_strdup_or_assert(cell_cag_info_local->valuestring));
OpenAPI_list_add(cell_cag_infoList , ogs_strdup(cell_cag_info_local->valuestring));
}
}
@ -184,10 +183,10 @@ OpenAPI_authentication_info_request_t *OpenAPI_authentication_info_request_parse
}
authentication_info_request_local_var = OpenAPI_authentication_info_request_create (
supported_features ? ogs_strdup_or_assert(supported_features->valuestring) : NULL,
ogs_strdup_or_assert(serving_network_name->valuestring),
supported_features ? ogs_strdup(supported_features->valuestring) : NULL,
ogs_strdup(serving_network_name->valuestring),
resynchronization_info ? resynchronization_info_local_nonprim : NULL,
ogs_strdup_or_assert(ausf_instance_id->valuestring),
ogs_strdup(ausf_instance_id->valuestring),
cell_cag_info ? cell_cag_infoList : NULL,
n5gc_ind ? true : false,
n5gc_ind ? n5gc_ind->valueint : 0