scripts: use leaks on macOS

This commit is contained in:
Etienne Samson
2018-04-20 23:11:27 +02:00
parent 0fb8c1d09c
commit 4c969618f6

View File

@@ -10,4 +10,6 @@ fi
if [ -n "$VALGRIND" -a -e "$(which valgrind)" ]; then
valgrind --leak-check=full --show-reachable=yes --error-exitcode=125 --num-callers=50 --suppressions=./libgit2_clar.supp _build/libgit2_clar $@ -ionline -xbuf::oom
elif [ -n "$LEAKS" -a -e "$(which leaks)" ]; then
MallocStackLogging=1 MallocScribble=1 leaks -atExit -- _build/libgit2_clar -ionline
fi