# CoTaskMemFree

```csharp
[DllImport("ole32.dll", SetLastError = true)]
public static extern void CoTaskMemFree(
   IntPtr pv
);
```

Microsoft documentation: [Link](https://docs.microsoft.com/en-us/windows/win32/api/combaseapi/nf-combaseapi-cotaskmemfree)
