![]() |
CFAllocatorDeallocate | Header: CFBase.h |
Deallocates a block of memory with a given allocator.
void CFAllocatorDeallocate ( CFAllocatorRef allocator, void *ptr );
A reference of type CFAllocatorRef. Pass the reference to the allocator which was used to allocate the block of memory pointed to by ptr.
An untyped pointer to a block of memory that you want to be deallocated using the specified allocator.
You call the CFAllocatorDeallocate function to deallocate a block of memory. The allocator referenced in the first parameter is used for this purpose or, if NULL is passed instead, the default allocator is used. The allocator must be the same allocator that was used to allocate the block of memory. If the allocator does not specify a deallocate callback function, the memory is not deallocated.
You must use the same allocator to deallocate memory as was used to allocate it.