> ## 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

既定のメモリ解放ルーチン。

## Syntax

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

### Parameters

*Address*    型: PVOID

\[in] 解放するブロックのアドレス。以前に XMemAllocDefault を使用して割り当てられている必要があります。

*Attributes*\
型: ULONGLONG

\[in] 割り当ての属性。[XALLOC\_ATTRIBUTES](/reference/system/xmem/structs/xalloc_attributes) を参照してください

**Remarks**

システムからは 2 つの既定関数がエクスポートされます: [*XMemAllocDefault*](/reference/system/xmem/functions/xmemallocdefault)
と *XmemFreeDefault*。
これらは割り当てフックの初期値を表します。タイトルが独自の割り当てフックを提供しないことを選択した場合、これらのシステム既定のアロケーターが代わりに使用されます。タイトルがトラッキングのために割り当てフックを提供したいが、独自のアロケーターを実装したくない場合は、既定のアロケーターを直接呼び出すことができます。

**See also**

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

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


## Related topics

- [XMEMFREE_ROUTINE callback](/ja-jp/reference/system/xmem/functions/xmemfree_routine.md)
- [XMEMALLOC_ROUTINE callback](/ja-jp/reference/system/xmem/functions/xmemalloc_routine.md)
- [XMemSetAllocationHooks](/ja-jp/reference/system/xmem/functions/xmemsetallocationhooks.md)
- [XMemFreePhysicalPages](/ja-jp/reference/system/xmem/functions/xmemfreephysicalpages.md)
- [XMemPreallocateFreeSpace](/ja-jp/reference/system/xmem/functions/xmempreallocatefreespace.md)
