Frees a previously allocated block of contiguous memory of a known size.
Knowing the size of the freed block allows some implementations to cache and reuse freed blocks.
- Parameters
-
memory | A pointer to the block of memory to be deallocated. |
size | The size of the freed block. |
- Note
- The default implementation, which implementors can override, simply calls Free with no size, ignoring the size parameter. This provides backwards compatibility with legacy implementations that don't implement this overload of Free.