> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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](https://docs.xbox.com/zh-TW/reference/system/xmem/structs/xalloc_attributes.md)

**備註**

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

**另請參閱**

[*xmem\_set\_allocation\_hooks*](https://docs.xbox.com/zh-TW/reference/system/xmem/macros/xmem_set_allocation_hooks.md)

[*xmem\_allocation\_hooks*](https://docs.xbox.com/zh-TW/reference/system/xmem/structs/xmem_allocation_hooks.md)


## Related topics

- [XMEMFREE_ROUTINE 回呼](https://docs.xbox.com/zh-TW/reference/system/xmem/functions/xmemfree_routine.md)
- [XMEMALLOC_ROUTINE 回呼](https://docs.xbox.com/zh-TW/reference/system/xmem/functions/xmemalloc_routine.md)
- [XMemSetAllocationHooks](https://docs.xbox.com/zh-TW/reference/system/xmem/functions/xmemsetallocationhooks.md)
- [XMEM_SET_ALLOCATION_HOOKS](https://docs.xbox.com/zh-TW/reference/system/xmem/macros/xmem_set_allocation_hooks.md)
- [XMemFreePhysicalPages](https://docs.xbox.com/zh-TW/reference/system/xmem/functions/xmemfreephysicalpages.md)
