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_ipv6_prefix_range_t *OpenAPI_ipv6_prefix_range_create(
|
|||
char *end
|
||||
)
|
||||
{
|
||||
OpenAPI_ipv6_prefix_range_t *ipv6_prefix_range_local_var = OpenAPI_malloc(sizeof(OpenAPI_ipv6_prefix_range_t));
|
||||
if (!ipv6_prefix_range_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_ipv6_prefix_range_t *ipv6_prefix_range_local_var = ogs_malloc(sizeof(OpenAPI_ipv6_prefix_range_t));
|
||||
ogs_assert(ipv6_prefix_range_local_var);
|
||||
|
||||
ipv6_prefix_range_local_var->start = start;
|
||||
ipv6_prefix_range_local_var->end = end;
|
||||
|
||||
|
|
@ -80,8 +79,8 @@ OpenAPI_ipv6_prefix_range_t *OpenAPI_ipv6_prefix_range_parseFromJSON(cJSON *ipv6
|
|||
}
|
||||
|
||||
ipv6_prefix_range_local_var = OpenAPI_ipv6_prefix_range_create (
|
||||
start ? ogs_strdup_or_assert(start->valuestring) : NULL,
|
||||
end ? ogs_strdup_or_assert(end->valuestring) : NULL
|
||||
start ? ogs_strdup(start->valuestring) : NULL,
|
||||
end ? ogs_strdup(end->valuestring) : NULL
|
||||
);
|
||||
|
||||
return ipv6_prefix_range_local_var;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue