mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30: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
|
|
@ -9,10 +9,9 @@ OpenAPI_flow_info_t *OpenAPI_flow_info_create(
|
|||
OpenAPI_list_t *flow_descriptions
|
||||
)
|
||||
{
|
||||
OpenAPI_flow_info_t *flow_info_local_var = OpenAPI_malloc(sizeof(OpenAPI_flow_info_t));
|
||||
if (!flow_info_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_flow_info_t *flow_info_local_var = ogs_malloc(sizeof(OpenAPI_flow_info_t));
|
||||
ogs_assert(flow_info_local_var);
|
||||
|
||||
flow_info_local_var->flow_id = flow_id;
|
||||
flow_info_local_var->flow_descriptions = flow_descriptions;
|
||||
|
||||
|
|
@ -97,7 +96,7 @@ OpenAPI_flow_info_t *OpenAPI_flow_info_parseFromJSON(cJSON *flow_infoJSON)
|
|||
ogs_error("OpenAPI_flow_info_parseFromJSON() failed [flow_descriptions]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(flow_descriptionsList , ogs_strdup_or_assert(flow_descriptions_local->valuestring));
|
||||
OpenAPI_list_add(flow_descriptionsList , ogs_strdup(flow_descriptions_local->valuestring));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue