c907a5 fix minor memory leaks and other bugs found by Coverity scan

Authored and Committed by tmraz 6 years ago
    fix minor memory leaks and other bugs found by Coverity scan
    
        
file modified
+3 -0