2f9f7b5 qemu: Resolve Coverity RESOURCE_LEAK

Authored and Committed by John Ferlan 8 years ago
    qemu: Resolve Coverity RESOURCE_LEAK
    
    Recent changes to the -M/--machine processing code in qemuParseCommandLine
    caused Coverity to determine there was a possible resource leak with how
    the 'list' is managed. Rather than try to add virStringFreeList calls
    everywhere - just promote list to the top of the variables and free it
    within the error processing code. Also required a couple of other tweaks
    in order to avoid double free's.
    
        
file modified
+4 -4