> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XMemFreeDefault

> XMemFreeDefault

# XMemFreeDefault

預設的記憶體解除配置常式。

## 語法

```cpp theme={null}
VOID XMemFreeDefault(
                PVOID Address,
                ULONGLONG Attributes
)
```

### 參數

*Address*    類型：PVOID

\[in] 要解除配置之區塊的位址，必須是先前使用 XMemAllocDefault 配置的。

*Attributes*\
類型：ULONGLONG

\[in] 配置的屬性。請參閱 [XALLOC\_ATTRIBUTES](/zh-TW/reference/system/xmem/structs/xalloc_attributes)

**備註**

系統匯出兩個預設函式：[*XMemAllocDefault*](/zh-TW/reference/system/xmem/functions/xmemallocdefault)
和 *XmemFreeDefault*。
這些代表配置攔截程序的初始值。如果遊戲選擇不提供自己的配置攔截程序，則會改用這些系統預設配置器。如果遊戲想要提供配置攔截程序以進行追蹤，但不想實作自己的配置器，則可以直接呼叫預設配置器。

**另請參閱**

[*xmem\_set\_allocation\_hooks*](/zh-TW/reference/system/xmem/macros/xmem_set_allocation_hooks)

[*xmem\_allocation\_hooks*](/zh-TW/reference/system/xmem/structs/xmem_allocation_hooks)


## Related topics

- [XMemFreeDefault](/reference/system/xmem/functions/xmemfreedefault.md)
- [XMEMFREE_ROUTINE callback](/reference/system/xmem/functions/xmemfree_routine.md)
