Coverity Scan
Refactor voteinfo
Fix some of the many memory leaks