Deallocate memory previously obtained from allocate.

Synopsis

Declared in <bdls_memoryutil.h>

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

Name

Description

address

address of memory previously returned by allocate

Created with MrDocs