Last change
on this file since 3335 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
566 bytes
|
Rev | Line | |
---|
[3320] | 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" >"$output.leaked"
|
---|
| 9 |
|
---|
| 10 | i=8
|
---|
| 11 | list=
|
---|
| 12 | for freed in $freelist; do
|
---|
| 13 | list="$list -e $freed"
|
---|
| 14 | test $((--i)) != 0 && continue
|
---|
| 15 | echo Dropping $list
|
---|
| 16 | grep -F -v $list <"$output.leaked" >"$output.temp"
|
---|
| 17 | mv "$output.temp" "$output.leaked"
|
---|
| 18 | i=8
|
---|
| 19 | list=
|
---|
| 20 | done
|
---|
| 21 | if test "$list"; then
|
---|
| 22 | echo Dropping $list
|
---|
| 23 | grep -F -v $list <"$output.leaked" >"$output.temp"
|
---|
| 24 | mv "$output.temp" "$output.leaked"
|
---|
| 25 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.