mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 07:08:11 +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_binding_resp_t *OpenAPI_binding_resp_create(
|
|||
OpenAPI_list_t *pcf_sm_ip_end_points
|
||||
)
|
||||
{
|
||||
OpenAPI_binding_resp_t *binding_resp_local_var = OpenAPI_malloc(sizeof(OpenAPI_binding_resp_t));
|
||||
if (!binding_resp_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_binding_resp_t *binding_resp_local_var = ogs_malloc(sizeof(OpenAPI_binding_resp_t));
|
||||
ogs_assert(binding_resp_local_var);
|
||||
|
||||
binding_resp_local_var->pcf_sm_fqdn = pcf_sm_fqdn;
|
||||
binding_resp_local_var->pcf_sm_ip_end_points = pcf_sm_ip_end_points;
|
||||
|
||||
|
|
@ -110,7 +109,7 @@ OpenAPI_binding_resp_t *OpenAPI_binding_resp_parseFromJSON(cJSON *binding_respJS
|
|||
}
|
||||
|
||||
binding_resp_local_var = OpenAPI_binding_resp_create (
|
||||
pcf_sm_fqdn ? ogs_strdup_or_assert(pcf_sm_fqdn->valuestring) : NULL,
|
||||
pcf_sm_fqdn ? ogs_strdup(pcf_sm_fqdn->valuestring) : NULL,
|
||||
pcf_sm_ip_end_points ? pcf_sm_ip_end_pointsList : NULL
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue