# FreeTracked(void*, Allocator)

> Free memory with leak tracking.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections.LowLevel.Unsafe](/engine/6000.0/script-reference/unity/collections/lowlevel/unsafe.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static void FreeTracked(void* memory, Allocator allocator)
```

### Parameters

**** (\[void\*]\(https\://learn.microsoft.com/dotnet/api/system.void)): Memory pointer.**** (\[Allocator]\(/engine/6000.0/script-reference/unity/collections/allocator)): Allocator.
