---
title: "NSDeallocateMemoryPages(_:_:)"
framework: foundation
role: symbol
role_heading: Function
path: "foundation/nsdeallocatememorypages(_:_:)"
---

# NSDeallocateMemoryPages(_:_:)

Deallocates the specified block of memory.

## Declaration

```swift
func NSDeallocateMemoryPages(_ ptr: UnsafeMutableRawPointer, _ bytes: Int)
```

## Discussion

Discussion This function deallocates memory that was allocated with NSAllocateMemoryPages.

## See Also

### Memory Management

- [NSAllocateMemoryPages(_:)](foundation/nsallocatememorypages(_:).md)
- [NSCopyMemoryPages(_:_:_:)](foundation/nscopymemorypages(_:_:_:).md)
- [NSLogPageSize()](foundation/nslogpagesize().md)
- [NSPageSize()](foundation/nspagesize().md)
- [NSRealMemoryAvailable()](foundation/nsrealmemoryavailable().md)
- [NSRoundDownToMultipleOfPageSize(_:)](foundation/nsrounddowntomultipleofpagesize(_:).md)
- [NSRoundUpToMultipleOfPageSize(_:)](foundation/nsrounduptomultipleofpagesize(_:).md)
