11.12.3.4.33. Function iot_agent_service_free_service_descriptor

11.12.3.4.33.1. Function Documentation

void iot_agent_service_free_service_descriptor(nxp_iot_ServiceDescriptor *service_descriptor)

Free all FT_POINTER fields of a service descriptor.

When selecting a service, a service descriptor is read from a datastore. A service descriptor can contain fields of variable length (binary data (certificates, etc.) or text (hostname, etc.)). Those fields use dynamically allocated memory. The memory is freed by calling this function.

Parameters
  • [in] service_descriptor: Reference to service descriptor