---
title: NSZoneFree
framework: foundation
role: symbol
role_heading: Function
path: foundation/nszonefree
---

# NSZoneFree

Deallocates a block of memory in the specified zone.

## Declaration

```occ
extern void NSZoneFree(NSZone *zone, void *ptr);
```

## Discussion

Discussion Returns memory to the zone from which it was allocated. The standard C function free does the same, but spends time finding which zone the memory belongs to.

## See Also

### Managing Zones

- [NSCreateZone](foundation/nscreatezone.md)
- [NSRecycleZone](foundation/nsrecyclezone.md)
- [NSSetZoneName](foundation/nssetzonename.md)
- [NSZoneCalloc](foundation/nszonecalloc.md)
- [NSZoneFromPointer](foundation/nszonefrompointer.md)
- [NSZoneMalloc](foundation/nszonemalloc.md)
- [NSZoneName](foundation/nszonename.md)
- [NSZoneRealloc](foundation/nszonerealloc.md)
- [NSDefaultMallocZone](foundation/nsdefaultmalloczone.md)
