summaryrefslogtreecommitdiffstats
path: root/script/leaks.sh
diff options
context:
space:
mode:
Diffstat (limited to 'script/leaks.sh')
-rwxr-xr-xscript/leaks.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/script/leaks.sh b/script/leaks.sh
new file mode 100755
index 0000000..efeead5
--- /dev/null
+++ b/script/leaks.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+export MallocStackLogging=1
+export MallocScribble=1
+export MallocLogFile=/dev/null
+export CLAR_AT_EXIT="leaks -quiet \$PPID"
+exec "$@"