I'm trying to check for memory leaks in a program I wrote in C. I'm running MacOS Mojave. When I run valgrind, I get this error:
$ valgrind --leak-check=full --show-reachable=yes ./shell.out
valgrind: mmap-FIXED(0x0, 520192) failed in UME (load_segment1) with error 12 (Cannot allocate memory).