Added make target for coverity static analysis.
Removed unnecessary bitshift.
Fix memory cleanup on prepare_fills() failure.