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
|
|
@ -8,10 +8,9 @@ OpenAPI_nf_set_cond_t *OpenAPI_nf_set_cond_create(
|
|||
char *nf_set_id
|
||||
)
|
||||
{
|
||||
OpenAPI_nf_set_cond_t *nf_set_cond_local_var = OpenAPI_malloc(sizeof(OpenAPI_nf_set_cond_t));
|
||||
if (!nf_set_cond_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_nf_set_cond_t *nf_set_cond_local_var = ogs_malloc(sizeof(OpenAPI_nf_set_cond_t));
|
||||
ogs_assert(nf_set_cond_local_var);
|
||||
|
||||
nf_set_cond_local_var->nf_set_id = nf_set_id;
|
||||
|
||||
return nf_set_cond_local_var;
|
||||
|
|
@ -61,7 +60,7 @@ OpenAPI_nf_set_cond_t *OpenAPI_nf_set_cond_parseFromJSON(cJSON *nf_set_condJSON)
|
|||
}
|
||||
|
||||
nf_set_cond_local_var = OpenAPI_nf_set_cond_create (
|
||||
ogs_strdup_or_assert(nf_set_id->valuestring)
|
||||
ogs_strdup(nf_set_id->valuestring)
|
||||
);
|
||||
|
||||
return nf_set_cond_local_var;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue