[SBI] Crash occurs when ENUM in the MAP (#2103)

This commit is contained in:
Sukchan Lee 2023-03-01 17:50:25 +09:00
parent ce668c556c
commit 969c116e77
1097 changed files with 266728 additions and 42047 deletions

View file

@ -32,38 +32,61 @@ OpenAPI_presence_info_rm_t *OpenAPI_presence_info_rm_create(
void OpenAPI_presence_info_rm_free(OpenAPI_presence_info_rm_t *presence_info_rm)
{
OpenAPI_lnode_t *node = NULL;
if (NULL == presence_info_rm) {
return;
}
OpenAPI_lnode_t *node;
ogs_free(presence_info_rm->pra_id);
ogs_free(presence_info_rm->additional_pra_id);
OpenAPI_list_for_each(presence_info_rm->tracking_area_list, node) {
OpenAPI_tai_free(node->data);
if (presence_info_rm->pra_id) {
ogs_free(presence_info_rm->pra_id);
presence_info_rm->pra_id = NULL;
}
OpenAPI_list_free(presence_info_rm->tracking_area_list);
OpenAPI_list_for_each(presence_info_rm->ecgi_list, node) {
OpenAPI_ecgi_free(node->data);
if (presence_info_rm->additional_pra_id) {
ogs_free(presence_info_rm->additional_pra_id);
presence_info_rm->additional_pra_id = NULL;
}
OpenAPI_list_free(presence_info_rm->ecgi_list);
OpenAPI_list_for_each(presence_info_rm->ncgi_list, node) {
OpenAPI_ncgi_free(node->data);
if (presence_info_rm->tracking_area_list) {
OpenAPI_list_for_each(presence_info_rm->tracking_area_list, node) {
OpenAPI_tai_free(node->data);
}
OpenAPI_list_free(presence_info_rm->tracking_area_list);
presence_info_rm->tracking_area_list = NULL;
}
OpenAPI_list_free(presence_info_rm->ncgi_list);
OpenAPI_list_for_each(presence_info_rm->global_ran_node_id_list, node) {
OpenAPI_global_ran_node_id_free(node->data);
if (presence_info_rm->ecgi_list) {
OpenAPI_list_for_each(presence_info_rm->ecgi_list, node) {
OpenAPI_ecgi_free(node->data);
}
OpenAPI_list_free(presence_info_rm->ecgi_list);
presence_info_rm->ecgi_list = NULL;
}
OpenAPI_list_free(presence_info_rm->global_ran_node_id_list);
OpenAPI_list_for_each(presence_info_rm->globale_nb_id_list, node) {
OpenAPI_global_ran_node_id_free(node->data);
if (presence_info_rm->ncgi_list) {
OpenAPI_list_for_each(presence_info_rm->ncgi_list, node) {
OpenAPI_ncgi_free(node->data);
}
OpenAPI_list_free(presence_info_rm->ncgi_list);
presence_info_rm->ncgi_list = NULL;
}
if (presence_info_rm->global_ran_node_id_list) {
OpenAPI_list_for_each(presence_info_rm->global_ran_node_id_list, node) {
OpenAPI_global_ran_node_id_free(node->data);
}
OpenAPI_list_free(presence_info_rm->global_ran_node_id_list);
presence_info_rm->global_ran_node_id_list = NULL;
}
if (presence_info_rm->globale_nb_id_list) {
OpenAPI_list_for_each(presence_info_rm->globale_nb_id_list, node) {
OpenAPI_global_ran_node_id_free(node->data);
}
OpenAPI_list_free(presence_info_rm->globale_nb_id_list);
presence_info_rm->globale_nb_id_list = NULL;
}
OpenAPI_list_free(presence_info_rm->globale_nb_id_list);
ogs_free(presence_info_rm);
}
cJSON *OpenAPI_presence_info_rm_convertToJSON(OpenAPI_presence_info_rm_t *presence_info_rm)
{
cJSON *item = NULL;
OpenAPI_lnode_t *node = NULL;
if (presence_info_rm == NULL) {
ogs_error("OpenAPI_presence_info_rm_convertToJSON() failed [PresenceInfoRm]");
@ -85,7 +108,7 @@ cJSON *OpenAPI_presence_info_rm_convertToJSON(OpenAPI_presence_info_rm_t *presen
}
}
if (presence_info_rm->presence_state) {
if (presence_info_rm->presence_state != OpenAPI_presence_state_NULL) {
if (cJSON_AddStringToObject(item, "presenceState", OpenAPI_presence_state_ToString(presence_info_rm->presence_state)) == NULL) {
ogs_error("OpenAPI_presence_info_rm_convertToJSON() failed [presence_state]");
goto end;
@ -98,17 +121,13 @@ cJSON *OpenAPI_presence_info_rm_convertToJSON(OpenAPI_presence_info_rm_t *presen
ogs_error("OpenAPI_presence_info_rm_convertToJSON() failed [tracking_area_list]");
goto end;
}
OpenAPI_lnode_t *tracking_area_list_node;
if (presence_info_rm->tracking_area_list) {
OpenAPI_list_for_each(presence_info_rm->tracking_area_list, tracking_area_list_node) {
cJSON *itemLocal = OpenAPI_tai_convertToJSON(tracking_area_list_node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_presence_info_rm_convertToJSON() failed [tracking_area_list]");
goto end;
}
cJSON_AddItemToArray(tracking_area_listList, itemLocal);
OpenAPI_list_for_each(presence_info_rm->tracking_area_list, node) {
cJSON *itemLocal = OpenAPI_tai_convertToJSON(node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_presence_info_rm_convertToJSON() failed [tracking_area_list]");
goto end;
}
cJSON_AddItemToArray(tracking_area_listList, itemLocal);
}
}
@ -118,17 +137,13 @@ cJSON *OpenAPI_presence_info_rm_convertToJSON(OpenAPI_presence_info_rm_t *presen
ogs_error("OpenAPI_presence_info_rm_convertToJSON() failed [ecgi_list]");
goto end;
}
OpenAPI_lnode_t *ecgi_list_node;
if (presence_info_rm->ecgi_list) {
OpenAPI_list_for_each(presence_info_rm->ecgi_list, ecgi_list_node) {
cJSON *itemLocal = OpenAPI_ecgi_convertToJSON(ecgi_list_node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_presence_info_rm_convertToJSON() failed [ecgi_list]");
goto end;
}
cJSON_AddItemToArray(ecgi_listList, itemLocal);
OpenAPI_list_for_each(presence_info_rm->ecgi_list, node) {
cJSON *itemLocal = OpenAPI_ecgi_convertToJSON(node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_presence_info_rm_convertToJSON() failed [ecgi_list]");
goto end;
}
cJSON_AddItemToArray(ecgi_listList, itemLocal);
}
}
@ -138,17 +153,13 @@ cJSON *OpenAPI_presence_info_rm_convertToJSON(OpenAPI_presence_info_rm_t *presen
ogs_error("OpenAPI_presence_info_rm_convertToJSON() failed [ncgi_list]");
goto end;
}
OpenAPI_lnode_t *ncgi_list_node;
if (presence_info_rm->ncgi_list) {
OpenAPI_list_for_each(presence_info_rm->ncgi_list, ncgi_list_node) {
cJSON *itemLocal = OpenAPI_ncgi_convertToJSON(ncgi_list_node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_presence_info_rm_convertToJSON() failed [ncgi_list]");
goto end;
}
cJSON_AddItemToArray(ncgi_listList, itemLocal);
OpenAPI_list_for_each(presence_info_rm->ncgi_list, node) {
cJSON *itemLocal = OpenAPI_ncgi_convertToJSON(node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_presence_info_rm_convertToJSON() failed [ncgi_list]");
goto end;
}
cJSON_AddItemToArray(ncgi_listList, itemLocal);
}
}
@ -158,17 +169,13 @@ cJSON *OpenAPI_presence_info_rm_convertToJSON(OpenAPI_presence_info_rm_t *presen
ogs_error("OpenAPI_presence_info_rm_convertToJSON() failed [global_ran_node_id_list]");
goto end;
}
OpenAPI_lnode_t *global_ran_node_id_list_node;
if (presence_info_rm->global_ran_node_id_list) {
OpenAPI_list_for_each(presence_info_rm->global_ran_node_id_list, global_ran_node_id_list_node) {
cJSON *itemLocal = OpenAPI_global_ran_node_id_convertToJSON(global_ran_node_id_list_node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_presence_info_rm_convertToJSON() failed [global_ran_node_id_list]");
goto end;
}
cJSON_AddItemToArray(global_ran_node_id_listList, itemLocal);
OpenAPI_list_for_each(presence_info_rm->global_ran_node_id_list, node) {
cJSON *itemLocal = OpenAPI_global_ran_node_id_convertToJSON(node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_presence_info_rm_convertToJSON() failed [global_ran_node_id_list]");
goto end;
}
cJSON_AddItemToArray(global_ran_node_id_listList, itemLocal);
}
}
@ -178,17 +185,13 @@ cJSON *OpenAPI_presence_info_rm_convertToJSON(OpenAPI_presence_info_rm_t *presen
ogs_error("OpenAPI_presence_info_rm_convertToJSON() failed [globale_nb_id_list]");
goto end;
}
OpenAPI_lnode_t *globale_nb_id_list_node;
if (presence_info_rm->globale_nb_id_list) {
OpenAPI_list_for_each(presence_info_rm->globale_nb_id_list, globale_nb_id_list_node) {
cJSON *itemLocal = OpenAPI_global_ran_node_id_convertToJSON(globale_nb_id_list_node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_presence_info_rm_convertToJSON() failed [globale_nb_id_list]");
goto end;
}
cJSON_AddItemToArray(globale_nb_id_listList, itemLocal);
OpenAPI_list_for_each(presence_info_rm->globale_nb_id_list, node) {
cJSON *itemLocal = OpenAPI_global_ran_node_id_convertToJSON(node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_presence_info_rm_convertToJSON() failed [globale_nb_id_list]");
goto end;
}
cJSON_AddItemToArray(globale_nb_id_listList, itemLocal);
}
}
@ -199,27 +202,38 @@ end:
OpenAPI_presence_info_rm_t *OpenAPI_presence_info_rm_parseFromJSON(cJSON *presence_info_rmJSON)
{
OpenAPI_presence_info_rm_t *presence_info_rm_local_var = NULL;
cJSON *pra_id = cJSON_GetObjectItemCaseSensitive(presence_info_rmJSON, "praId");
OpenAPI_lnode_t *node = NULL;
cJSON *pra_id = NULL;
cJSON *additional_pra_id = NULL;
cJSON *presence_state = NULL;
OpenAPI_presence_state_e presence_stateVariable = 0;
cJSON *tracking_area_list = NULL;
OpenAPI_list_t *tracking_area_listList = NULL;
cJSON *ecgi_list = NULL;
OpenAPI_list_t *ecgi_listList = NULL;
cJSON *ncgi_list = NULL;
OpenAPI_list_t *ncgi_listList = NULL;
cJSON *global_ran_node_id_list = NULL;
OpenAPI_list_t *global_ran_node_id_listList = NULL;
cJSON *globale_nb_id_list = NULL;
OpenAPI_list_t *globale_nb_id_listList = NULL;
pra_id = cJSON_GetObjectItemCaseSensitive(presence_info_rmJSON, "praId");
if (pra_id) {
if (!cJSON_IsString(pra_id)) {
if (!cJSON_IsString(pra_id) && !cJSON_IsNull(pra_id)) {
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [pra_id]");
goto end;
}
}
cJSON *additional_pra_id = cJSON_GetObjectItemCaseSensitive(presence_info_rmJSON, "additionalPraId");
additional_pra_id = cJSON_GetObjectItemCaseSensitive(presence_info_rmJSON, "additionalPraId");
if (additional_pra_id) {
if (!cJSON_IsString(additional_pra_id)) {
if (!cJSON_IsString(additional_pra_id) && !cJSON_IsNull(additional_pra_id)) {
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [additional_pra_id]");
goto end;
}
}
cJSON *presence_state = cJSON_GetObjectItemCaseSensitive(presence_info_rmJSON, "presenceState");
OpenAPI_presence_state_e presence_stateVariable;
presence_state = cJSON_GetObjectItemCaseSensitive(presence_info_rmJSON, "presenceState");
if (presence_state) {
if (!cJSON_IsString(presence_state)) {
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [presence_state]");
@ -228,154 +242,134 @@ OpenAPI_presence_info_rm_t *OpenAPI_presence_info_rm_parseFromJSON(cJSON *presen
presence_stateVariable = OpenAPI_presence_state_FromString(presence_state->valuestring);
}
cJSON *tracking_area_list = cJSON_GetObjectItemCaseSensitive(presence_info_rmJSON, "trackingAreaList");
OpenAPI_list_t *tracking_area_listList;
tracking_area_list = cJSON_GetObjectItemCaseSensitive(presence_info_rmJSON, "trackingAreaList");
if (tracking_area_list) {
cJSON *tracking_area_list_local_nonprimitive;
if (!cJSON_IsArray(tracking_area_list)){
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [tracking_area_list]");
goto end;
}
tracking_area_listList = OpenAPI_list_create();
cJSON_ArrayForEach(tracking_area_list_local_nonprimitive, tracking_area_list ) {
if (!cJSON_IsObject(tracking_area_list_local_nonprimitive)) {
cJSON *tracking_area_list_local = NULL;
if (!cJSON_IsArray(tracking_area_list)) {
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [tracking_area_list]");
goto end;
}
OpenAPI_tai_t *tracking_area_listItem = OpenAPI_tai_parseFromJSON(tracking_area_list_local_nonprimitive);
if (!tracking_area_listItem) {
ogs_error("No tracking_area_listItem");
OpenAPI_list_free(tracking_area_listList);
goto end;
tracking_area_listList = OpenAPI_list_create();
cJSON_ArrayForEach(tracking_area_list_local, tracking_area_list) {
if (!cJSON_IsObject(tracking_area_list_local)) {
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [tracking_area_list]");
goto end;
}
OpenAPI_tai_t *tracking_area_listItem = OpenAPI_tai_parseFromJSON(tracking_area_list_local);
if (!tracking_area_listItem) {
ogs_error("No tracking_area_listItem");
OpenAPI_list_free(tracking_area_listList);
goto end;
}
OpenAPI_list_add(tracking_area_listList, tracking_area_listItem);
}
OpenAPI_list_add(tracking_area_listList, tracking_area_listItem);
}
}
cJSON *ecgi_list = cJSON_GetObjectItemCaseSensitive(presence_info_rmJSON, "ecgiList");
OpenAPI_list_t *ecgi_listList;
ecgi_list = cJSON_GetObjectItemCaseSensitive(presence_info_rmJSON, "ecgiList");
if (ecgi_list) {
cJSON *ecgi_list_local_nonprimitive;
if (!cJSON_IsArray(ecgi_list)){
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [ecgi_list]");
goto end;
}
ecgi_listList = OpenAPI_list_create();
cJSON_ArrayForEach(ecgi_list_local_nonprimitive, ecgi_list ) {
if (!cJSON_IsObject(ecgi_list_local_nonprimitive)) {
cJSON *ecgi_list_local = NULL;
if (!cJSON_IsArray(ecgi_list)) {
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [ecgi_list]");
goto end;
}
OpenAPI_ecgi_t *ecgi_listItem = OpenAPI_ecgi_parseFromJSON(ecgi_list_local_nonprimitive);
if (!ecgi_listItem) {
ogs_error("No ecgi_listItem");
OpenAPI_list_free(ecgi_listList);
goto end;
ecgi_listList = OpenAPI_list_create();
cJSON_ArrayForEach(ecgi_list_local, ecgi_list) {
if (!cJSON_IsObject(ecgi_list_local)) {
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [ecgi_list]");
goto end;
}
OpenAPI_ecgi_t *ecgi_listItem = OpenAPI_ecgi_parseFromJSON(ecgi_list_local);
if (!ecgi_listItem) {
ogs_error("No ecgi_listItem");
OpenAPI_list_free(ecgi_listList);
goto end;
}
OpenAPI_list_add(ecgi_listList, ecgi_listItem);
}
OpenAPI_list_add(ecgi_listList, ecgi_listItem);
}
}
cJSON *ncgi_list = cJSON_GetObjectItemCaseSensitive(presence_info_rmJSON, "ncgiList");
OpenAPI_list_t *ncgi_listList;
ncgi_list = cJSON_GetObjectItemCaseSensitive(presence_info_rmJSON, "ncgiList");
if (ncgi_list) {
cJSON *ncgi_list_local_nonprimitive;
if (!cJSON_IsArray(ncgi_list)){
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [ncgi_list]");
goto end;
}
ncgi_listList = OpenAPI_list_create();
cJSON_ArrayForEach(ncgi_list_local_nonprimitive, ncgi_list ) {
if (!cJSON_IsObject(ncgi_list_local_nonprimitive)) {
cJSON *ncgi_list_local = NULL;
if (!cJSON_IsArray(ncgi_list)) {
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [ncgi_list]");
goto end;
}
OpenAPI_ncgi_t *ncgi_listItem = OpenAPI_ncgi_parseFromJSON(ncgi_list_local_nonprimitive);
if (!ncgi_listItem) {
ogs_error("No ncgi_listItem");
OpenAPI_list_free(ncgi_listList);
goto end;
ncgi_listList = OpenAPI_list_create();
cJSON_ArrayForEach(ncgi_list_local, ncgi_list) {
if (!cJSON_IsObject(ncgi_list_local)) {
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [ncgi_list]");
goto end;
}
OpenAPI_ncgi_t *ncgi_listItem = OpenAPI_ncgi_parseFromJSON(ncgi_list_local);
if (!ncgi_listItem) {
ogs_error("No ncgi_listItem");
OpenAPI_list_free(ncgi_listList);
goto end;
}
OpenAPI_list_add(ncgi_listList, ncgi_listItem);
}
OpenAPI_list_add(ncgi_listList, ncgi_listItem);
}
}
cJSON *global_ran_node_id_list = cJSON_GetObjectItemCaseSensitive(presence_info_rmJSON, "globalRanNodeIdList");
OpenAPI_list_t *global_ran_node_id_listList;
global_ran_node_id_list = cJSON_GetObjectItemCaseSensitive(presence_info_rmJSON, "globalRanNodeIdList");
if (global_ran_node_id_list) {
cJSON *global_ran_node_id_list_local_nonprimitive;
if (!cJSON_IsArray(global_ran_node_id_list)){
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [global_ran_node_id_list]");
goto end;
}
global_ran_node_id_listList = OpenAPI_list_create();
cJSON_ArrayForEach(global_ran_node_id_list_local_nonprimitive, global_ran_node_id_list ) {
if (!cJSON_IsObject(global_ran_node_id_list_local_nonprimitive)) {
cJSON *global_ran_node_id_list_local = NULL;
if (!cJSON_IsArray(global_ran_node_id_list)) {
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [global_ran_node_id_list]");
goto end;
}
OpenAPI_global_ran_node_id_t *global_ran_node_id_listItem = OpenAPI_global_ran_node_id_parseFromJSON(global_ran_node_id_list_local_nonprimitive);
if (!global_ran_node_id_listItem) {
ogs_error("No global_ran_node_id_listItem");
OpenAPI_list_free(global_ran_node_id_listList);
goto end;
global_ran_node_id_listList = OpenAPI_list_create();
cJSON_ArrayForEach(global_ran_node_id_list_local, global_ran_node_id_list) {
if (!cJSON_IsObject(global_ran_node_id_list_local)) {
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [global_ran_node_id_list]");
goto end;
}
OpenAPI_global_ran_node_id_t *global_ran_node_id_listItem = OpenAPI_global_ran_node_id_parseFromJSON(global_ran_node_id_list_local);
if (!global_ran_node_id_listItem) {
ogs_error("No global_ran_node_id_listItem");
OpenAPI_list_free(global_ran_node_id_listList);
goto end;
}
OpenAPI_list_add(global_ran_node_id_listList, global_ran_node_id_listItem);
}
OpenAPI_list_add(global_ran_node_id_listList, global_ran_node_id_listItem);
}
}
cJSON *globale_nb_id_list = cJSON_GetObjectItemCaseSensitive(presence_info_rmJSON, "globaleNbIdList");
OpenAPI_list_t *globale_nb_id_listList;
globale_nb_id_list = cJSON_GetObjectItemCaseSensitive(presence_info_rmJSON, "globaleNbIdList");
if (globale_nb_id_list) {
cJSON *globale_nb_id_list_local_nonprimitive;
if (!cJSON_IsArray(globale_nb_id_list)){
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [globale_nb_id_list]");
goto end;
}
globale_nb_id_listList = OpenAPI_list_create();
cJSON_ArrayForEach(globale_nb_id_list_local_nonprimitive, globale_nb_id_list ) {
if (!cJSON_IsObject(globale_nb_id_list_local_nonprimitive)) {
cJSON *globale_nb_id_list_local = NULL;
if (!cJSON_IsArray(globale_nb_id_list)) {
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [globale_nb_id_list]");
goto end;
}
OpenAPI_global_ran_node_id_t *globale_nb_id_listItem = OpenAPI_global_ran_node_id_parseFromJSON(globale_nb_id_list_local_nonprimitive);
if (!globale_nb_id_listItem) {
ogs_error("No globale_nb_id_listItem");
OpenAPI_list_free(globale_nb_id_listList);
goto end;
globale_nb_id_listList = OpenAPI_list_create();
cJSON_ArrayForEach(globale_nb_id_list_local, globale_nb_id_list) {
if (!cJSON_IsObject(globale_nb_id_list_local)) {
ogs_error("OpenAPI_presence_info_rm_parseFromJSON() failed [globale_nb_id_list]");
goto end;
}
OpenAPI_global_ran_node_id_t *globale_nb_id_listItem = OpenAPI_global_ran_node_id_parseFromJSON(globale_nb_id_list_local);
if (!globale_nb_id_listItem) {
ogs_error("No globale_nb_id_listItem");
OpenAPI_list_free(globale_nb_id_listList);
goto end;
}
OpenAPI_list_add(globale_nb_id_listList, globale_nb_id_listItem);
}
OpenAPI_list_add(globale_nb_id_listList, globale_nb_id_listItem);
}
}
presence_info_rm_local_var = OpenAPI_presence_info_rm_create (
pra_id ? ogs_strdup(pra_id->valuestring) : NULL,
additional_pra_id ? ogs_strdup(additional_pra_id->valuestring) : NULL,
pra_id && !cJSON_IsNull(pra_id) ? ogs_strdup(pra_id->valuestring) : NULL,
additional_pra_id && !cJSON_IsNull(additional_pra_id) ? ogs_strdup(additional_pra_id->valuestring) : NULL,
presence_state ? presence_stateVariable : 0,
tracking_area_list ? tracking_area_listList : NULL,
ecgi_list ? ecgi_listList : NULL,
@ -386,6 +380,41 @@ OpenAPI_presence_info_rm_t *OpenAPI_presence_info_rm_parseFromJSON(cJSON *presen
return presence_info_rm_local_var;
end:
if (tracking_area_listList) {
OpenAPI_list_for_each(tracking_area_listList, node) {
OpenAPI_tai_free(node->data);
}
OpenAPI_list_free(tracking_area_listList);
tracking_area_listList = NULL;
}
if (ecgi_listList) {
OpenAPI_list_for_each(ecgi_listList, node) {
OpenAPI_ecgi_free(node->data);
}
OpenAPI_list_free(ecgi_listList);
ecgi_listList = NULL;
}
if (ncgi_listList) {
OpenAPI_list_for_each(ncgi_listList, node) {
OpenAPI_ncgi_free(node->data);
}
OpenAPI_list_free(ncgi_listList);
ncgi_listList = NULL;
}
if (global_ran_node_id_listList) {
OpenAPI_list_for_each(global_ran_node_id_listList, node) {
OpenAPI_global_ran_node_id_free(node->data);
}
OpenAPI_list_free(global_ran_node_id_listList);
global_ran_node_id_listList = NULL;
}
if (globale_nb_id_listList) {
OpenAPI_list_for_each(globale_nb_id_listList, node) {
OpenAPI_global_ran_node_id_free(node->data);
}
OpenAPI_list_free(globale_nb_id_listList);
globale_nb_id_listList = NULL;
}
return NULL;
}