create valgrind script cmd

This commit is contained in:
2024-02-12 12:12:54 +01:00
parent c07ed1b160
commit 78b8cb5145
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
if [ "$#" -ge 2 ] ; then
valgrind --leak-check=full \
--show-leak-kinds=all \
--track-origins=yes \
--verbose \
--log-file=$2 \
$1
fi
if [ "$#" -eq 1 ] ; then
valgrind --leak-check=full \
--show-leak-kinds=all \
--track-origins=yes \
--verbose \
$1
fi