Free the collection structure

The collection structure holds the collection elements. The scope of this structure is from the time it is created, by mi_collection_create() or mi_collection_copy(), until one of the following events occurs:
  • The mi_collection_free() function frees the collection structure.
  • The current memory duration expires. (Server only)
  • The mi_close() function closes the connection.

To conserve resources, use the mi_collection_free() function to free the collection structure once your DataBlade® API module no longer needs it. The mi_collection_close() function is the destructor function for the collection structure.