Moar Coverity

This should take care of all the issues Coverity had with pfPatcher except for the plString false positives. I also fixed some memory leaks in other parts of the engine as a bonus. Enjoy.