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

# ApuFree

> ApuFree

# ApuFree

Frees APU physical memory.

## Syntax

```cpp theme={null}
void ApuFree(  
         void* virtualAddress  
)  
```

### Parameters

*virtualAddress*   \_In\_\
Type: void\*

Virtual address to free.

### Return value

Type: void

## Remarks

Freeing the virtual address invalidates the physical address. To create an allocation, use [ApuAlloc](/reference/audio/apu/functions/apualloc).

The virtual and physical addresses that are returned by `ApuAlloc` represent different views of the same address space.

## Requirements

**Header:** apu.h

**Library:** acphal.lib

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## Conceptual documentation

* [XMA2 overview](/build/console-features/audio/overviews/xma2-overview)

## See also

[ApuAlloc](/reference/audio/apu/functions/apualloc)\
[APU](/reference/audio/apu/apu_members)


## Related topics

- [ApuAlloc](/reference/audio/apu/functions/apualloc.md)
- [APU (Audio Processing Unit)](/reference/audio/apu/apu_members.md)
- [Overview of XMA2](/build/console-features/audio/overviews/xma2-overview.md)
- [ApuHeapState](/reference/audio/apu/structs/apuheapstate.md)
- [XApuDisconnect](/reference/audio/xapu/functions/xapudisconnect.md)
