Here are some simple coverity fixes:
Note one of them messes with the QA code, I see random failures on the
on the tests now. However the original code was clearly bad
I’ll look at the adaptive filter stuff some more. Hopefully, itis a
matter of removing un-needed files from the build.