11.12.3.4.12. Function iot_agent_free_service_descriptor¶
Defined in File nxp_iot_agent.h
11.12.3.4.12.1. Function Documentation¶
-
void
iot_agent_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