FreeTracked
Free memory with leak tracking.
Read time 1 minuteLast updated 19 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.CoreModule
FreeTracked(void*, Allocator)
Free memory with leak tracking.
public static void FreeTracked(void* memory, Allocator allocator)
Parameters
FreeTracked(void*, MemoryLabel)
Free memory with leak tracking, using the specified memory label.
public static void FreeTracked(void* memory, MemoryLabel label)
Parameters
Memory pointer.
The memory label that was used to allocate the memory. The memory label must match the one used during allocation to ensure correct deallocation.