diff options
Diffstat (limited to 'valgrind.sh')
-rwxr-xr-x | valgrind.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/valgrind.sh b/valgrind.sh new file mode 100755 index 00000000..fe292f44 --- /dev/null +++ b/valgrind.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +VALGRIND=$(which valgrind 2>&1) + +if [ -x "$VALGRIND" ]; then + exec "$VALGRIND" --leak-check=full --show-reachable=yes "$@" +else + exec "$@" +fi |