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

# Devolución de llamada XMEMFREE\_ROUTINE

Define la sintaxis de las rutinas de desasignación de memoria, [XMemFree](/reference/system/xmem/functions/xmemfree) y `XMemFreeDefault`.

<a id="syntaxSection" />

## Sintaxis

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

<a id="parametersSection" />

### Parámetros

*Address*   \_In\_\
Tipo: PVOID

La dirección de la memoria que se va a liberar.

*Attributes*   \_In\_\
Tipo: ULONGLONG

Los atributos de la asignación de memoria. Para obtener más información, consulte [XALLOC\_ATTRIBUTES](/reference/system/xmem/structs/xalloc_attributes).

<a id="retvalSection" />

### Valor devuelto

Tipo: VOID

Ninguno.

<a id="remarksSection" />

## Comentarios

Esta definición de función se usa en la estructura [XMEM\_ALLOCATION\_HOOKS](/reference/system/xmem/structs/xmem_allocation_hooks) para definir las funciones [XMemFree](/reference/system/xmem/functions/xmemfree) y `XMemFreeDefault`. De manera similar, la definición de función [XMEMALLOC\_ROUTINE](/reference/system/xmem/functions/xmemalloc_routine) se usa para definir las funciones [XMemAlloc](/reference/system/xmem/functions/xmemalloc) y `XMemAllocDefault`.

<Note>El código fuente de la implementación predeterminada de `XMemFree` se instala como parte del Microsoft Game Development Kit (GDK). Para obtener más información, consulte la función `XMemFreeDefault` en `\GXDK\gameKit\Source\amd64\heap.c`.</Note>

<a id="requirementsSection" />

## Requisitos

**Encabezado:** xmem.h

**Biblioteca:** xmem.lib

**Plataformas compatibles:** consolas de la familia XBOX One y consolas XBOX Series

<a id="seealsoSection" />

## Consulte también

[Diagnóstico y seguimiento de memoria](/build/console-features/memory/system-memory-diagnostics)\
[XMem](/reference/system/xmem/xmem_members)\
[XMemFreeDefault](/reference/system/xmem/functions/xmemfreedefault)


## Related topics

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