Function dds_data_allocator_free

Function Documentation

dds_return_t dds_data_allocator_free(dds_data_allocator_t *data_allocator, void *ptr)

Release memory using the given allocator.

Parameters
  • data_allocator[inout] initialized allocator object

  • ptr[in] memory to free

Return values
  • DDS_RETCODE_OK – the memory was successfully released

  • DDS_RETCODE_BAD_PARAMETER – data_allocator does not reference a valid entity

  • DDS_RETCODE_PRECONDITION_NOT_METdds_data_allocator already finalized

Returns

success or an error indication