2f7ced3 qemu_capabilities: Resolve Coverity RESOURCE_LEAK

Authored and Committed by John Ferlan 9 years ago
    qemu_capabilities: Resolve Coverity RESOURCE_LEAK
    
    Coverity determined that on error path that 'mach' wouldn't be free'd
    Since virCapabilitiesFreeGuestMachine() isn't globally available, we'll
    insert first and then if the VIR_STRDUP's fail they it will eventually
    cause the 'mach' to be freed in the error path
    
        
file modified
+1 -1