5c0dad7 qemu_driver: Resolve Coverity FORWARD_NULL

Authored and Committed by John Ferlan 9 years ago
    qemu_driver: Resolve Coverity FORWARD_NULL
    
    In qemuDomainSnapshotCreateDiskActive() if we jumped to cleanup from a
    failed actions = virJSONValueNewArray(), then 'cfg' would be NULL.
    
    So just return -1, which in turn removes the need for cleanup:
    
        
file modified
+1 -2