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

# Retorno de chamada XMEMFREE_ROUTINE

> Retorno de chamada XMEMFREE_ROUTINE

# Retorno de chamada XMEMFREE\_ROUTINE

Define a sintaxe das rotinas de desalocação de memória, [XMemFree](/pt-BR/reference/system/xmem/functions/xmemfree) e `XMemFreeDefault`.

<a id="syntaxSection" />

## Sintaxe

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

<a id="parametersSection" />

### Parâmetros

*Address*   \_In\_\
Tipo: PVOID

O endereço da memória a ser liberada.

*Attributes*   \_In\_\
Tipo: ULONGLONG

Os atributos da alocação de memória. Para obter mais informações, confira [XALLOC\_ATTRIBUTES](/pt-BR/reference/system/xmem/structs/xalloc_attributes).

<a id="retvalSection" />

### Valor retornado

Tipo: VOID

Nenhum.

<a id="remarksSection" />

## Comentários

Essa definição de função é usada na estrutura [XMEM\_ALLOCATION\_HOOKS](/pt-BR/reference/system/xmem/structs/xmem_allocation_hooks) para definir as funções [XMemFree](/pt-BR/reference/system/xmem/functions/xmemfree) e `XMemFreeDefault`. Da mesma forma, a definição de função [XMEMALLOC\_ROUTINE](/pt-BR/reference/system/xmem/functions/xmemalloc_routine) é usada para definir as funções [XMemAlloc](/pt-BR/reference/system/xmem/functions/xmemalloc) e `XMemAllocDefault`.

<Note>O código-fonte da implementação padrão de `XMemFree` é instalado como parte do Microsoft Game Development Kit (GDK). Para obter mais informações, confira a função `XMemFreeDefault` em `\GXDK\gameKit\Source\amd64\heap.c`.</Note>

<a id="requirementsSection" />

## Requisitos

**Cabeçalho:** xmem.h

**Biblioteca:** xmem.lib

**Plataformas com suporte:** consoles da família XBOX One e consoles XBOX Series

<a id="seealsoSection" />

## Confira também

[Diagnóstico e rastreamento de memória](/pt-BR/build/console-features/memory/system-memory-diagnostics)\
[XMem](/pt-BR/reference/system/xmem/xmem_members)\
[XMemFreeDefault](/pt-BR/reference/system/xmem/functions/xmemfreedefault)


## Related topics

- [XMEMFREE_ROUTINE callback](/es/reference/system/xmem/functions/xmemfree_routine.md)
- [XMEMALLOC_ROUTINE callback](/es/reference/system/xmem/functions/xmemalloc_routine.md)
- [Xmemalloc routine](/ko/reference/system/xmem/functions/xmemalloc_routine.md)
- [XMemSetAllocationHooks](/es/reference/system/xmem/functions/xmemsetallocationhooks.md)
- [XMEM_ALLOCATION_HOOKS](/reference/system/xmem/structs/xmem_allocation_hooks.md)
