diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-08 16:46:45 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-08 16:46:45 +0000 |
commit | 14725f82b61ecae6014c86762d3f2a768d573839 (patch) | |
tree | 38961097fbe6fe0c819192ae8f9b355f55fe1b60 /shell/hush_leaktool.sh | |
parent | cc90f44402106dd6fb5d3f669958d9681e2b212f (diff) | |
download | busybox-w32-14725f82b61ecae6014c86762d3f2a768d573839.tar.gz busybox-w32-14725f82b61ecae6014c86762d3f2a768d573839.tar.bz2 busybox-w32-14725f82b61ecae6014c86762d3f2a768d573839.zip |
slight tweak to the leak detector
Diffstat (limited to 'shell/hush_leaktool.sh')
-rwxr-xr-x[-rw-r--r--] | shell/hush_leaktool.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/hush_leaktool.sh b/shell/hush_leaktool.sh index 54161b3e9..f8e47aecd 100644..100755 --- a/shell/hush_leaktool.sh +++ b/shell/hush_leaktool.sh | |||
@@ -5,9 +5,9 @@ output=output | |||
5 | 5 | ||
6 | freelist=`grep 'free 0x' "$output" | cut -d' ' -f2 | sort | uniq | xargs` | 6 | freelist=`grep 'free 0x' "$output" | cut -d' ' -f2 | sort | uniq | xargs` |
7 | 7 | ||
8 | grep -v free "$output" >temp1 | 8 | grep -v free "$output" >"$output.leaked" |
9 | for freed in $freelist; do | 9 | for freed in $freelist; do |
10 | echo Dropping $freed | 10 | echo Dropping $freed |
11 | grep -v $freed <temp1 >temp2 | 11 | grep -v $freed <"$output.leaked" >"$output.temp" |
12 | mv temp2 temp1 | 12 | mv "$output.temp" "$output.leaked" |
13 | done | 13 | done |