Coverity scan fixes
A few changes are just to shut coverity up, but it still managed to find 5 actual (small) memory leaks.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
A few changes are just to shut coverity up, but it still managed to find 5 actual (small) memory leaks.