mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30:10 +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
|
|
@ -13,10 +13,9 @@ OpenAPI_battery_indication_t *OpenAPI_battery_indication_create(
|
|||
int rechargeable_ind
|
||||
)
|
||||
{
|
||||
OpenAPI_battery_indication_t *battery_indication_local_var = OpenAPI_malloc(sizeof(OpenAPI_battery_indication_t));
|
||||
if (!battery_indication_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
OpenAPI_battery_indication_t *battery_indication_local_var = ogs_malloc(sizeof(OpenAPI_battery_indication_t));
|
||||
ogs_assert(battery_indication_local_var);
|
||||
|
||||
battery_indication_local_var->is_battery_ind = is_battery_ind;
|
||||
battery_indication_local_var->battery_ind = battery_ind;
|
||||
battery_indication_local_var->is_replaceable_ind = is_replaceable_ind;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue