Skip to main content

XMemFreeDefault

The default memory deallocation routine.

Syntax

Parameters

Address   Type: PVOID [in] The address of the block to deallocate, must have been previously allocated using XMemAllocDefault. Attributes
Type: ULONGLONG
[in] Attributes of the allocation. Refer to XALLOC_ATTRIBUTES Remarks Two default functions are exported by the system: XMemAllocDefault and XmemFreeDefault. These represent the initial values of the allocation hooks. If titles choose not to provide their own allocation hooks, these system default allocators will be used instead. If titles desire to provide allocation hooks for the sake of tracking, but do not wish to implement their own allocator, they can call into the default allocator directly. See also xmem_set_allocation_hooks xmem_allocation_hooks
Last modified on August 4, 2026