mleak.sh (158B)
1 #!/usr/bin/env sh 2 3 set -e 4 5 MALLOC_OPTIONS=D ktrace -tu "$1" 6 7 echo "\nLEAKS:" 8 kdump -u malloc | 9 awk '/addr2line/{ system("addr2line " $6 " " $7 " " $8) }'
dotfilesSettings and scripts | |
git clone git://git.konyahin.xyz/dotfiles | |
Log | Files | Refs | Submodules | LICENSE |