---
title: deallocate()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/unsafemutablerawpointer/deallocate()
---

# deallocate()

Deallocates the previously allocated memory block referenced by this pointer.

## Declaration

```swift
func deallocate()
```

## Discussion

Discussion The memory to be deallocated must be uninitialized or initialized to a trivial type.
