projects
/
oweals
/
busybox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
hush: delete hush-bugs/glob_and_vars.tests for real
[oweals/busybox.git]
/
shell
/
hush_leaktool.sh
1
#!/bin/sh
2
3
# hush's stderr with leak debug enabled
4
output=output
5
6
freelist=`grep 'free 0x' "$output" | cut -d' ' -f2 | sort | uniq | xargs`
7
8
grep -v free "$output" >temp1
9
for freed in $freelist; do
10
echo Dropping $freed
11
cat temp1 | grep -v $freed >temp2
12
mv temp2 temp1
13
done