Function anjay_delete

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 anjay object.

NOTE: The anjay pointer 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 the anjay object before calling this function, to avoid its usage after free.

Parameters:

anjay – Anjay object to delete. MUST NOT be NULL .