On Windows, install WSL before using Valgrind.
On Linux or in a Codespace, use Valgrind.
On macOS, use Leaks instead.
Valgrind