mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30: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
|
|
@ -12,10 +12,9 @@ OpenAPI_pp_active_time_t *OpenAPI_pp_active_time_create(
|
|||
char *mtc_provider_information
|
||||
)
|
||||
{
|
||||
OpenAPI_pp_active_time_t *pp_active_time_local_var = OpenAPI_malloc(sizeof(OpenAPI_pp_active_time_t));
|
||||
if (!pp_active_time_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_pp_active_time_t *pp_active_time_local_var = ogs_malloc(sizeof(OpenAPI_pp_active_time_t));
|
||||
ogs_assert(pp_active_time_local_var);
|
||||
|
||||
pp_active_time_local_var->active_time = active_time;
|
||||
pp_active_time_local_var->af_instance_id = af_instance_id;
|
||||
pp_active_time_local_var->reference_id = reference_id;
|
||||
|
|
@ -137,11 +136,11 @@ OpenAPI_pp_active_time_t *OpenAPI_pp_active_time_parseFromJSON(cJSON *pp_active_
|
|||
pp_active_time_local_var = OpenAPI_pp_active_time_create (
|
||||
|
||||
active_time->valuedouble,
|
||||
ogs_strdup_or_assert(af_instance_id->valuestring),
|
||||
ogs_strdup(af_instance_id->valuestring),
|
||||
|
||||
reference_id->valuedouble,
|
||||
validity_time ? ogs_strdup_or_assert(validity_time->valuestring) : NULL,
|
||||
mtc_provider_information ? ogs_strdup_or_assert(mtc_provider_information->valuestring) : NULL
|
||||
validity_time ? ogs_strdup(validity_time->valuestring) : NULL,
|
||||
mtc_provider_information ? ogs_strdup(mtc_provider_information->valuestring) : NULL
|
||||
);
|
||||
|
||||
return pp_active_time_local_var;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue