]> git.saurik.com Git - apple/libdispatch.git/blob - testing/leaks-wrapper
libdispatch-84.5.5.tar.gz
[apple/libdispatch.git] / testing / leaks-wrapper
1 #!/bin/sh
2
3 /usr/bin/leaks "$@" 2>&1 | tee "$@.leakslog" | grep -q " 0 leaks for 0 total leaked bytes"
4
5 if [ $? -eq 0 ]; then
6 rm "$@.leakslog"
7 exit 0
8 else
9 exit $?
10 fi