IOFree
Frees a memory block that contains general-purpose memory.
Declaration
void IOFree(void *address, size_t length);Parameters
- address:
The pointer to the memory block to free. The memory block must be one that you previously allocated with Iomalloc or Iomalloczero.
- length:
The size of the memory block, which must match the block’s original allocation size.
Discussion
Use this macro to free memory that you allocated with IOMalloc or IOMallocZero.