Created
April 21, 2020 15:31
-
-
Save drrost/5521bfcac4cd054e9ca269fc5d6e5b85 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Comile the leaker | |
clang leaker.c -o leaker | |
# Run leaks detecting tool | |
leaks -atExit -- ./leaker | grep LEAK: | |
# Optional | |
cd /usr/local/lib | |
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libLeaksAtExit.dylib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment