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

# XMEMFREE_ROUTINE callback

> XMEMFREE_ROUTINE callback

# XMEMFREE\_ROUTINE callback

메모리 할당 해제 루틴 [XMemFree](/reference/system/xmem/functions/xmemfree) 및 `XMemFreeDefault`의 구문을 정의합니다.

<a id="syntaxSection" />

## 구문

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

<a id="parametersSection" />

### 매개 변수

*Address*   \_In\_\
형식: PVOID

해제할 메모리의 주소입니다.

*Attributes*   \_In\_\
형식: ULONGLONG

메모리 할당의 특성입니다. 자세한 내용은 [XALLOC\_ATTRIBUTES](/reference/system/xmem/structs/xalloc_attributes)를 참조하세요.

<a id="retvalSection" />

### 반환 값

형식: VOID

없음.

<a id="remarksSection" />

## 설명

이 함수 정의는 [XMEM\_ALLOCATION\_HOOKS](/reference/system/xmem/structs/xmem_allocation_hooks) 구조체에서 [XMemFree](/reference/system/xmem/functions/xmemfree) 및 `XMemFreeDefault` 함수를 정의하는 데 사용됩니다. 마찬가지로, [XMEMALLOC\_ROUTINE](/reference/system/xmem/functions/xmemalloc_routine) 함수 정의는 [XMemAlloc](/reference/system/xmem/functions/xmemalloc) 및 `XMemAllocDefault` 함수를 정의하는 데 사용됩니다.

<Note>`XMemFree`의 기본 구현에 대한 소스 코드는 Microsoft Game Development Kit(GDK)의 일부로 설치됩니다. 자세한 내용은 `\GXDK\gameKit\Source\amd64\heap.c`의 `XMemFreeDefault` 함수를 참조하세요.</Note>

<a id="requirementsSection" />

## 요구 사항

**헤더:** xmem.h

**라이브러리:** xmem.lib

**지원 플랫폼:** XBOX One 제품군 콘솔 및 XBOX Series 콘솔

<a id="seealsoSection" />

## 함께 보기

[Diagnostics and memory tracking](/build/console-features/memory/system-memory-diagnostics)\
[XMem](/reference/system/xmem/xmem_members)\
[XMemFreeDefault](/reference/system/xmem/functions/xmemfreedefault)


## Related topics

- [Xmemalloc routine](/ko/reference/system/xmem/functions/xmemalloc_routine.md)
- [PHEAP_TRACK_ALLOC_ROUTINE callback](/ko/reference/system/xmem/functions/pheap_track_alloc_routine.md)
- [PHEAP_TRACK_FREE_ROUTINE callback](/ko/reference/system/xmem/functions/pheap_track_free_routine.md)
- [PHEAP_TRACK_REALLOC_ROUTINE callback](/ko/reference/system/xmem/functions/pheap_track_realloc_routine.md)
- [XMemSetAllocationHooks](/ko/reference/system/xmem/functions/xmemsetallocationhooks.md)
