---
title: IOFreeContiguous
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: kernel/1575295-iofreecontiguous
---

# IOFreeContiguous

Deprecated - use IOBufferMemoryDescriptor. Frees memory allocated with IOMallocContiguous.

## Declaration

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

## Parameters

- `address`: Virtual address of the allocated memory.
- `size`: Size of the memory allocated.

## Discussion

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