[#BloombergLP-bslma-TestAllocator-2destructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/TestAllocator.adoc[TestAllocator]::&#126;TestAllocator
:relfileprefix: ../../../
:mrdocs:

Destroy this allocator&period;

== Synopsis

Declared in `&lt;bslma&lowbar;testallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
&#126;TestAllocator() override;
----

== Description

Destroy this allocator&period; In verbose mode, print all contained state values of this allocator object to `stdout`&period; Except in quiet mode, automatically report any memory leaks to `stdout`&period; Abort if either `numBlocksInUse` or `numBytesInUse` return non&hyphen;zero unless in no&hyphen;abort mode or quiet mode&period; Note that, in all cases, destroying this object has no effect on outstanding memory blocks allocated from this test allocator (and may result in memory leaks &hyphen;&hyphen; e&period;g&period;, if the (default) `MallocFreeAllocator` singleton was used)&period;


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