Fix two bugs (of many) identified by Coverity. I want to see if the scanned defect count goes from 119 to 117.
Fix two bugs (of many) identified by Coverity. I want to see if the scanned defect count goes from 119 to 117.

live-clones/libadjoint,live-clones/libadjoint,live-clones/libadjoint,live-clones/libadjoint