[#BloombergLP-balst-StackTraceTestAllocator-deallocate-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balst.adoc[balst]::xref:BloombergLP/balst/StackTraceTestAllocator.adoc[StackTraceTestAllocator]::deallocate
:relfileprefix: ../../../
:mrdocs:

Return the memory block at the specified `address` back to this allocator&period; If `address` is 0, this function has no effect&period; 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&apos;&period; 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&period;

== Synopses

Declared in `&lt;balst&lowbar;stacktracetestallocator&period;h&gt;`

Return the memory block at the specified `address` back to this allocator&period; If `address` is 0, this function has no effect&period; 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&apos;&period; 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&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
xref:BloombergLP/balst/StackTraceTestAllocator/deallocate-08.adoc[deallocate](void* address) override;
----

[.small]#xref:BloombergLP/balst/StackTraceTestAllocator/deallocate-08.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bslma/Allocator/deallocate-077.adoc[deallocate](
    void* &lowbar;&lowbar;p,
    size&lowbar;t &lowbar;&lowbar;bytes,
    size&lowbar;t &lowbar;&lowbar;alignment = &lowbar;S&lowbar;max&lowbar;align);
----

[.small]#xref:BloombergLP/bslma/Allocator/deallocate-077.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
