[#BloombergLP-ball-CountingAllocator-deallocate-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/CountingAllocator.adoc[CountingAllocator]::deallocate
:relfileprefix: ../../../
:mrdocs:

Return the memory at the specified `address` to this allocator&period;

== Synopsis

Declared in `&lt;ball&lowbar;countingallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
deallocate(void* address) override;
----

== Description

Return the memory at the specified `address` back to this allocator and update the byte count maintained by this counting allocator appropriately&period; If `address` is 0, this function has no effect&period; The behavior is undefined unless `address` was allocated using this allocator and has not already been deallocated&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *address*
| previously allocated memory to return&semi; may be null
|===


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