[#BloombergLP-bslma-MallocFreeAllocator-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/MallocFreeAllocator.adoc[MallocFreeAllocator]::MallocFreeAllocator
:relfileprefix: ../../../
:mrdocs:

Create an allocator that uses `std&colon;&colon;malloc` and `std&colon;&colon;free` to supply memory&period; Note that all objects of this class share the same underlying resource&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
MallocFreeAllocator();
----


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