Valgrind is a tool used for memory management and profiling your applications. I wanted to use it on my Macbook and ran into issues installing with brew and it turned out it wasn’t too horrible of a change.
$ brew update
$ brew install --HEAD valgrind
Voila you now have a working run of valgrind. Happy Trails.