mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 05:10:10 +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
|
|
@ -21,10 +21,9 @@ OpenAPI_transfer_mt_data_error_t *OpenAPI_transfer_mt_data_error_create(
|
|||
int max_waiting_time
|
||||
)
|
||||
{
|
||||
OpenAPI_transfer_mt_data_error_t *transfer_mt_data_error_local_var = OpenAPI_malloc(sizeof(OpenAPI_transfer_mt_data_error_t));
|
||||
if (!transfer_mt_data_error_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_transfer_mt_data_error_t *transfer_mt_data_error_local_var = ogs_malloc(sizeof(OpenAPI_transfer_mt_data_error_t));
|
||||
ogs_assert(transfer_mt_data_error_local_var);
|
||||
|
||||
transfer_mt_data_error_local_var->type = type;
|
||||
transfer_mt_data_error_local_var->title = title;
|
||||
transfer_mt_data_error_local_var->is_status = is_status;
|
||||
|
|
@ -310,18 +309,18 @@ OpenAPI_transfer_mt_data_error_t *OpenAPI_transfer_mt_data_error_parseFromJSON(c
|
|||
}
|
||||
|
||||
transfer_mt_data_error_local_var = OpenAPI_transfer_mt_data_error_create (
|
||||
type ? ogs_strdup_or_assert(type->valuestring) : NULL,
|
||||
title ? ogs_strdup_or_assert(title->valuestring) : NULL,
|
||||
type ? ogs_strdup(type->valuestring) : NULL,
|
||||
title ? ogs_strdup(title->valuestring) : NULL,
|
||||
status ? true : false,
|
||||
status ? status->valuedouble : 0,
|
||||
detail ? ogs_strdup_or_assert(detail->valuestring) : NULL,
|
||||
instance ? ogs_strdup_or_assert(instance->valuestring) : NULL,
|
||||
cause ? ogs_strdup_or_assert(cause->valuestring) : NULL,
|
||||
detail ? ogs_strdup(detail->valuestring) : NULL,
|
||||
instance ? ogs_strdup(instance->valuestring) : NULL,
|
||||
cause ? ogs_strdup(cause->valuestring) : NULL,
|
||||
invalid_params ? invalid_paramsList : NULL,
|
||||
supported_features ? ogs_strdup_or_assert(supported_features->valuestring) : NULL,
|
||||
supported_features ? ogs_strdup(supported_features->valuestring) : NULL,
|
||||
access_token_error ? access_token_error_local_nonprim : NULL,
|
||||
access_token_request ? access_token_request_local_nonprim : NULL,
|
||||
nrf_id ? ogs_strdup_or_assert(nrf_id->valuestring) : NULL,
|
||||
nrf_id ? ogs_strdup(nrf_id->valuestring) : NULL,
|
||||
max_waiting_time ? true : false,
|
||||
max_waiting_time ? max_waiting_time->valuedouble : 0
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue