Mac OS X Sierra 10.13
I do as wrote here https://clang.llvm.org/docs/LeakSanitizer.html
I.e. created the small application with memory leak
#
It seems that the Clang/LLVM shipped by Apple does not have -fsanitize=leak
support. I fixed it by installing LLVM on Homebrew. A more detailed fix is on gist
$ brew install llvm@8
# Overwritten default Clang
$ echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> .zshrc
$ source ~/.zshrc
$ which clang
/usr/local/opt/llvm/bin/clang