mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-03 13:50:08 +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
|
|
@ -17,10 +17,9 @@ OpenAPI_reporting_options_t *OpenAPI_reporting_options_create(
|
|||
int report_period
|
||||
)
|
||||
{
|
||||
OpenAPI_reporting_options_t *reporting_options_local_var = OpenAPI_malloc(sizeof(OpenAPI_reporting_options_t));
|
||||
if (!reporting_options_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_reporting_options_t *reporting_options_local_var = ogs_malloc(sizeof(OpenAPI_reporting_options_t));
|
||||
ogs_assert(reporting_options_local_var);
|
||||
|
||||
reporting_options_local_var->report_mode = report_mode;
|
||||
reporting_options_local_var->is_max_num_of_reports = is_max_num_of_reports;
|
||||
reporting_options_local_var->max_num_of_reports = max_num_of_reports;
|
||||
|
|
@ -167,7 +166,7 @@ OpenAPI_reporting_options_t *OpenAPI_reporting_options_parseFromJSON(cJSON *repo
|
|||
report_mode ? report_mode_local_nonprim : NULL,
|
||||
max_num_of_reports ? true : false,
|
||||
max_num_of_reports ? max_num_of_reports->valuedouble : 0,
|
||||
expiry ? ogs_strdup_or_assert(expiry->valuestring) : NULL,
|
||||
expiry ? ogs_strdup(expiry->valuestring) : NULL,
|
||||
sampling_ratio ? true : false,
|
||||
sampling_ratio ? sampling_ratio->valuedouble : 0,
|
||||
guard_time ? true : false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue