Return the memory block at the specified address back to this allocator.

Synopsis

Declared in <balst_stacktracetestallocator.h>

virtual
void
deallocate(void* address) override;

Description

If address is 0, this function has no effect. Otherwise, if the memory at address is consistent with being allocated from this test allocator, deallocate it using the underlying allocator and delete it from the data structures keeping track of blocks in use'. If address is not zero and is not the address of a block allocated with this allocator (or if it is being deallocated a second time), write an error message and call the failure handler.

Parameters

Name

Description

address

memory block to return, or null

Created with MrDocs