mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 15:24:14 +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_gnb_id_t *OpenAPI_gnb_id_create(
|
|||
char *g_nb_value
|
||||
)
|
||||
{
|
||||
OpenAPI_gnb_id_t *gnb_id_local_var = OpenAPI_malloc(sizeof(OpenAPI_gnb_id_t));
|
||||
if (!gnb_id_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_gnb_id_t *gnb_id_local_var = ogs_malloc(sizeof(OpenAPI_gnb_id_t));
|
||||
ogs_assert(gnb_id_local_var);
|
||||
|
||||
gnb_id_local_var->bit_length = bit_length;
|
||||
gnb_id_local_var->g_nb_value = g_nb_value;
|
||||
|
||||
|
|
@ -81,7 +80,7 @@ OpenAPI_gnb_id_t *OpenAPI_gnb_id_parseFromJSON(cJSON *gnb_idJSON)
|
|||
gnb_id_local_var = OpenAPI_gnb_id_create (
|
||||
|
||||
bit_length->valuedouble,
|
||||
ogs_strdup_or_assert(g_nb_value->valuestring)
|
||||
ogs_strdup(g_nb_value->valuestring)
|
||||
);
|
||||
|
||||
return gnb_id_local_var;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue