---
title: IOFreeAligned
framework: kernel
role: symbol
role_heading: Function
path: kernel/1575330-iofreealigned
---

# IOFreeAligned

Frees memory allocated with IOMallocAligned.

## Declaration

```occ
void IOFreeAligned(void *address, vm_size_t size);
```

## Parameters

- `address`: Pointer to the allocated memory.
- `size`: Size of the memory allocated.

## Discussion

Discussion This function frees memory allocated with IOMallocAligned, it may block and so should not be called from interrupt level or while a simple lock is held.

## See Also

### Deallocation

- [IOFree](kernel/1575290-iofree.md)
- [IOFreePageable](kernel/1575300-iofreepageable.md)
