1 2 3 4 5 6 7 8 9 10
#!/bin/sh APP=$* LOG=$1-valgrind.log valgrind \ --verbose \ --log-file=$LOG \ --leak-check=full \ --run-libc-freeres=no \ --suppressions=valgrind-suppressions \ $APP