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_pc5_qo_s_para_t *OpenAPI_pc5_qo_s_para_create(
|
|||
char *pc5_link_ambr
|
||||
)
|
||||
{
|
||||
OpenAPI_pc5_qo_s_para_t *pc5_qo_s_para_local_var = OpenAPI_malloc(sizeof(OpenAPI_pc5_qo_s_para_t));
|
||||
if (!pc5_qo_s_para_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_pc5_qo_s_para_t *pc5_qo_s_para_local_var = ogs_malloc(sizeof(OpenAPI_pc5_qo_s_para_t));
|
||||
ogs_assert(pc5_qo_s_para_local_var);
|
||||
|
||||
pc5_qo_s_para_local_var->pc5_qos_flow_list = pc5_qos_flow_list;
|
||||
pc5_qo_s_para_local_var->pc5_link_ambr = pc5_link_ambr;
|
||||
|
||||
|
|
@ -111,7 +110,7 @@ OpenAPI_pc5_qo_s_para_t *OpenAPI_pc5_qo_s_para_parseFromJSON(cJSON *pc5_qo_s_par
|
|||
|
||||
pc5_qo_s_para_local_var = OpenAPI_pc5_qo_s_para_create (
|
||||
pc5_qos_flow_listList,
|
||||
pc5_link_ambr ? ogs_strdup_or_assert(pc5_link_ambr->valuestring) : NULL
|
||||
pc5_link_ambr ? ogs_strdup(pc5_link_ambr->valuestring) : NULL
|
||||
);
|
||||
|
||||
return pc5_qo_s_para_local_var;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue