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
|
|
@ -8,10 +8,9 @@ OpenAPI_options_response_t *OpenAPI_options_response_create(
|
|||
char *supported_features
|
||||
)
|
||||
{
|
||||
OpenAPI_options_response_t *options_response_local_var = OpenAPI_malloc(sizeof(OpenAPI_options_response_t));
|
||||
if (!options_response_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_options_response_t *options_response_local_var = ogs_malloc(sizeof(OpenAPI_options_response_t));
|
||||
ogs_assert(options_response_local_var);
|
||||
|
||||
options_response_local_var->supported_features = supported_features;
|
||||
|
||||
return options_response_local_var;
|
||||
|
|
@ -61,7 +60,7 @@ OpenAPI_options_response_t *OpenAPI_options_response_parseFromJSON(cJSON *option
|
|||
}
|
||||
|
||||
options_response_local_var = OpenAPI_options_response_create (
|
||||
supported_features ? ogs_strdup_or_assert(supported_features->valuestring) : NULL
|
||||
supported_features ? ogs_strdup(supported_features->valuestring) : NULL
|
||||
);
|
||||
|
||||
return options_response_local_var;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue