Add more memory log

This commit is contained in:
Sukchan Lee 2021-06-06 22:35:46 +09:00
parent 80a9497afd
commit 118d62d42d
657 changed files with 4179 additions and 3131 deletions

View file

@ -765,7 +765,7 @@ OpenAPI_nf_service_t *OpenAPI_nf_service_parseFromJSON(cJSON *nf_serviceJSON)
ogs_error("OpenAPI_nf_service_parseFromJSON() failed [allowed_nf_domains]");
goto end;
}
OpenAPI_list_add(allowed_nf_domainsList, ogs_strdup(allowed_nf_domains_local->valuestring));
OpenAPI_list_add(allowed_nf_domainsList, ogs_strdup_or_assert(allowed_nf_domains_local->valuestring));
}
}
@ -903,7 +903,7 @@ OpenAPI_nf_service_t *OpenAPI_nf_service_parseFromJSON(cJSON *nf_serviceJSON)
ogs_error("OpenAPI_nf_service_parseFromJSON() failed [nf_service_set_id_list]");
goto end;
}
OpenAPI_list_add(nf_service_set_id_listList, ogs_strdup(nf_service_set_id_list_local->valuestring));
OpenAPI_list_add(nf_service_set_id_listList, ogs_strdup_or_assert(nf_service_set_id_list_local->valuestring));
}
}
@ -989,15 +989,15 @@ OpenAPI_nf_service_t *OpenAPI_nf_service_parseFromJSON(cJSON *nf_serviceJSON)
}
nf_service_local_var = OpenAPI_nf_service_create (
ogs_strdup(service_instance_id->valuestring),
ogs_strdup(service_name->valuestring),
ogs_strdup_or_assert(service_instance_id->valuestring),
ogs_strdup_or_assert(service_name->valuestring),
versionsList,
schemeVariable,
nf_service_statusVariable,
fqdn ? ogs_strdup(fqdn->valuestring) : NULL,
inter_plmn_fqdn ? ogs_strdup(inter_plmn_fqdn->valuestring) : NULL,
fqdn ? ogs_strdup_or_assert(fqdn->valuestring) : NULL,
inter_plmn_fqdn ? ogs_strdup_or_assert(inter_plmn_fqdn->valuestring) : NULL,
ip_end_points ? ip_end_pointsList : NULL,
api_prefix ? ogs_strdup(api_prefix->valuestring) : NULL,
api_prefix ? ogs_strdup_or_assert(api_prefix->valuestring) : NULL,
default_notification_subscriptions ? default_notification_subscriptionsList : NULL,
allowed_plmns ? allowed_plmnsList : NULL,
allowed_snpns ? allowed_snpnsList : NULL,
@ -1009,14 +1009,14 @@ OpenAPI_nf_service_t *OpenAPI_nf_service_parseFromJSON(cJSON *nf_serviceJSON)
priority ? priority->valuedouble : 0,
capacity ? capacity->valuedouble : 0,
load ? load->valuedouble : 0,
load_time_stamp ? ogs_strdup(load_time_stamp->valuestring) : NULL,
recovery_time ? ogs_strdup(recovery_time->valuestring) : NULL,
load_time_stamp ? ogs_strdup_or_assert(load_time_stamp->valuestring) : NULL,
recovery_time ? ogs_strdup_or_assert(recovery_time->valuestring) : NULL,
chf_service_info ? chf_service_info_local_nonprim : NULL,
supported_features ? ogs_strdup(supported_features->valuestring) : NULL,
supported_features ? ogs_strdup_or_assert(supported_features->valuestring) : NULL,
nf_service_set_id_list ? nf_service_set_id_listList : NULL,
s_nssais ? s_nssaisList : NULL,
per_plmn_snssai_list ? per_plmn_snssai_listList : NULL,
vendor_id ? ogs_strdup(vendor_id->valuestring) : NULL,
vendor_id ? ogs_strdup_or_assert(vendor_id->valuestring) : NULL,
supported_vendor_specific_features ? supported_vendor_specific_featuresList : NULL,
oauth2_required ? oauth2_required->valueint : 0
);