mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 14:20:09 +00:00
Use talloc for all memory pool (#1263)
This commit is contained in:
parent
49d9ed03c7
commit
b988e7edce
768 changed files with 4632 additions and 4901 deletions
|
|
@ -11,10 +11,9 @@ OpenAPI_authentication_info_result_t *OpenAPI_authentication_info_result_create(
|
|||
char *supi
|
||||
)
|
||||
{
|
||||
OpenAPI_authentication_info_result_t *authentication_info_result_local_var = OpenAPI_malloc(sizeof(OpenAPI_authentication_info_result_t));
|
||||
if (!authentication_info_result_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_authentication_info_result_t *authentication_info_result_local_var = ogs_malloc(sizeof(OpenAPI_authentication_info_result_t));
|
||||
ogs_assert(authentication_info_result_local_var);
|
||||
|
||||
authentication_info_result_local_var->auth_type = auth_type;
|
||||
authentication_info_result_local_var->supported_features = supported_features;
|
||||
authentication_info_result_local_var->authentication_vector = authentication_vector;
|
||||
|
|
@ -124,9 +123,9 @@ OpenAPI_authentication_info_result_t *OpenAPI_authentication_info_result_parseFr
|
|||
|
||||
authentication_info_result_local_var = OpenAPI_authentication_info_result_create (
|
||||
auth_typeVariable,
|
||||
supported_features ? ogs_strdup_or_assert(supported_features->valuestring) : NULL,
|
||||
supported_features ? ogs_strdup(supported_features->valuestring) : NULL,
|
||||
authentication_vector ? authentication_vector_local_nonprim : NULL,
|
||||
supi ? ogs_strdup_or_assert(supi->valuestring) : NULL
|
||||
supi ? ogs_strdup(supi->valuestring) : NULL
|
||||
);
|
||||
|
||||
return authentication_info_result_local_var;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue