I\'m macOS Big Sur. AFAIK, Valgrind doesn\'t support this OS yet. At least I\'ve tried this.
After some Googling, I switched to LeakSanitizier and tested this C code: