Function anjay_delete
Defined in File core.h
Function Documentation
-
void anjay_delete(anjay_t *anjay)
Cleans up all resources and releases the Anjay object.
NOTE: It shall be called before freeing LwM2M Objects registered within the
anjayobject.NOTE: The
anjaypointer is invalidated during the call to this function. If Anjay is compiled with thread safety enabled, all the intermediary cleanup code is properly synchronized, but you should still make sure that no other thread is able to access theanjayobject before calling this function, to avoid its usage after free.- Parameters:
anjay – Anjay object to delete. MUST NOT be
NULL.