[#BloombergLP-bdls-MemoryUtil-deallocate] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/MemoryUtil.adoc[MemoryUtil]::deallocate :relfileprefix: ../../../ :mrdocs: Deallocate memory previously obtained from `allocate`. == Synopsis Declared in `<bdls_memoryutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int deallocate(void* address); ---- == Description Deallocate a memory area at the specified `address` previously allocated with the `allocate` method. Return 0 on success, and a nonzero value otherwise. The behavior is undefined if read or write access to any memory in this area has been revoked and not restored. Note that deallocating memory does not change memory protection. == Return Value 0 on success, and a nonzero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *address* | address of memory previously returned by `allocate` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#